Commit Graph

3523 Commits

Author SHA1 Message Date
Gerald Squelart
33342972f0 Bug 1224019 - Disable Stagefright subset gtests - r=jya, rs=botond
These tests are exploratory, they don't particularly match whatever the
original issues were discovered, so it is safe to disable them for now.
A future bug will look at re-enabling them, but without all the output
that they generate.

--HG--
extra : rebase_source : c31b049d696d09094a8fb94f09525756840cf33f
2015-11-11 19:24:48 -05:00
Wes Kocher
f3a9eb2a26 Backed out changeset 1e5f3d1151d6 (bug 1219480) for cpp unittest bustage CLOSED TREE
--HG--
extra : commitid : BMVKq6cPeho
2015-11-11 09:36:56 -08:00
sajitk
3cbe348cdd Bug 1219480 - Replace PRLogModuleInfo with LazyLogModule in the media directory. r=rillian
--HG--
extra : rebase_source : c73098485fa005d914304fb6e7f8eba3c15e66dc
2015-11-11 06:52:00 +01:00
Gerald Squelart
a407a004d9 Bug 1216845 - Check fallible allocations - r=rillian
- Made externally-sized 'new' allocations fallible.
- Check return value of every new(fallible)/malloc/realloc.
- Consistently return -ENOMEM when allocations fail.
- MPEG4Extractor::getTrack() and getMetaData() can return null (because of
  failed parse or failed alloc); added missing checks in callers.

Note: Some allocs in the 2nd half of MPEG4Extractor have not been touched, as
they are in unused code to be removed in bug 1210319.
2015-11-11 12:37:53 +01:00
Gerald Squelart
305f63eb74 Bug 1216748 - p4. Check other Metadata::setData uses - r=rillian
Found only one other use that needed better checks: the size of the pssh
data was only checked after all items were added up; so it would be
possible to create a set of big items such that they create an overflow,
but the final sum looks reasonable.
Instead each item size should be checked, and the sum should also be
checked at each step.
2015-11-11 12:36:26 +01:00
Gerald Squelart
11139b4935 Bug 1216748 - p3. Ensure 'covr' data size cannot create underflow - r=rillian 2015-11-11 12:36:05 +01:00
Gerald Squelart
e8a831bae2 Bug 1216748 - p2. Handle failed malloc in Metadata storage - r=rillian 2015-11-11 12:35:52 +01:00
Gerald Squelart
fe2b536abd Bug 1216748 - p1. Added test case with different 'covr' sizes - r=rillian 2015-11-11 12:35:38 +01:00
Nils Ohlmeier [:drno]
2781200097 Bug 1208278 - improved STUN request timeout handling. r=bwc
--HG--
extra : rebase_source : 5db4b680b26eb5c4e9e69443602e3a0d8fbca247
2015-10-21 00:37:48 -07:00
Ralph Giles
fb945d27e7 Bug 1220885 - Add telemetry probe for rust mp4parse success. r=kinetik p=ally
This is a boolean to record the overall success rate of the new
demuxer path.
2015-11-09 12:42:00 -08:00
Randell Jesup
d90f4749ea Bug 800564: Handle MJPEG decode errors r=abr 2015-11-09 13:08:06 -05:00
Nils Ohlmeier [:drno]
8420475130 Bug 1220441 - Improve gather trickle ice unit tests. r=bwc r=mjf
--HG--
extra : transplant_source : %60%F7%F7%11%21%C1%10L%19u%C4M%11%40%E6%0F%D9%0AO%C5
2015-11-02 14:57:30 -08:00
hsteinbr
e216ff61fb Bug 1211656 - GUM Constraints for screen sharing don't affect stream resolution. r=jib 2015-11-04 19:06:00 +01:00
Jeff Muizelaar
bcf6317ef4 Bug 1217080. Move recycling functionality into RecyclingPlanarYCbCrImage. r=nical
This makes PlanarYCbCrImage abstract and moves the recycling functionality
into RecyclingPlanarYCbCrImage. This decreases the size of
SharedPlanarYCbCrImage and makes it possible for us to do part 3 of bug
1216644.
2015-11-06 13:55:31 -05:00
Gerald Squelart
2505b44960 Bug 1185230 - p1: Added mp4 test case to libstagefright gtest - r=rillian 2015-11-05 23:20:00 +01:00
Gerald Squelart
a7ce313646 Bug 1185230 - p2: Store MPEG4Source::mTimescale as uint32_t - r=rillian
The timescale is read as an unsigned integer, but was stored signed in MPEG4Source,
causing it to overflow into a negative number if too big, causing later issues when
exporting indices with negative timestamps.
2015-11-05 20:10:00 +01:00
Gerald Squelart
439afcf535 Bug 1181213 - Added Added mp4 test case to libstagefright gtest - r=rillian
Note: This bug is effectively fixed by bug 1181215, so only this test case is
provided to prove the successful resolution of this bug.
2015-11-05 19:12:00 +01:00
Gerald Squelart
468dab6c37 Bug 1181215 - p1: Added mp4 test case to libstagefright gtest - r=rillian 2015-11-05 19:11:00 +01:00
Gerald Squelart
15f513a32e Bug 1181215 - p2: Better track verification - r=rillian
Copied some tests from MPEG4Source constructor to MPEG4Extractor::verifyTrack
so that we don't get late surprises, in particular a missing track ID.
2015-11-05 03:11:00 +01:00
Gerald Squelart
1a225cc661 Bug 1181220 - p2: Check if MIME types are valid - r=rillian 2015-11-05 19:10:00 +01:00
Gerald Squelart
d26da5bb6a Bug 1181220 - p1: Added mp4 test case to libstagefright gtest - r=rillian 2015-11-05 19:08:00 +01:00
Gerald Squelart
007ffc84ce Bug 1181223 - p2: Handle wrong saio/saiz size instead of assuming it is correct - r=rillian 2015-11-05 19:06:00 +01:00
Gerald Squelart
35a07e897c Bug 1181223 - p1: Added mp4 test case to libstagefright gtest - r=rillian 2015-11-05 19:05:00 +01:00
Gerald Squelart
0cd18ff32b Bug 1181719 - p1: Added mp4 test case to libstagefright gtest - r=rillian
Remove mdat, which is big and not useful in this test that only looks at
metadata.
2015-11-05 19:01:00 +01:00
Gerald Squelart
1f8be14a2b Bug 1181719 - p2: Check numBitsLeft before each getBits - r=rillian 2015-11-04 23:42:00 +01:00
Mike Hommey
4d40edea15 Bug 1221453 - Use AbsolutePaths with LOCAL_INCLUDES instead of manual -I in CXXFLAGS. r=gps 2015-11-06 09:59:21 +09:00
Mike Hommey
762aba02cd Bug 1221453 - Use ObjDirPaths for GENERATED_INCLUDES and merge with LOCAL_INCLUDES. r=gps 2015-11-06 09:59:21 +09:00
Nathan Froyd
e763192040 Bug 1216611 - add mozilla::MakeUniqueFallible and convert uses throughout the tree; r=Waldo 2015-11-05 16:24:24 -05:00
Ralph Giles
11afc76455 Bug 1189531 - Check for nullptr in convertTimeToDate. r=gerald
In current code it's not possible to pass nullptr, but there's
no harm in checking.

See also bug 1156891.
2015-11-04 14:43:00 -08:00
Ralph Giles
75e08b8620 Bug 1221656 - Update rust mp4parse to v0.1.4. r=kinetik
New upstream release.

- turn off debug trace messages by default.
- better rejection of bad ftyp boxes.
2015-11-04 10:15:00 -08:00
Ralph Giles
7c6d20d965 Bug 1221656 - Copy mp4parse.h in update-rust.sh. r=kinetik
We had added this header manually at some point, but the script
wasn't updating it.

Also bump the default mp4parse version to the latest.
2015-11-04 10:14:00 -08:00
Michael Froman
e3f3d60e8c Bug 1192813 - update the default candidate as new candidates arrive. r=bwc 2015-10-01 10:20:11 -05:00
Nicolas Silva
1ebb1e2bb7 Bug 1219330 - Handle PlanaYCbCrImage::SetData failure. r=jya, jesup 2015-11-03 12:24:26 +01:00
Nils Ohlmeier [:drno]
944e3aaf48 Bug 1192403 - improve ICE TCP error message. r=mjf
--HG--
extra : transplant_source : -%25t%10%26%91%3EnY%1F%24%22%E2%94%24%B5%98%24c%16
2015-08-08 00:39:32 -07:00
Ralph Giles
62347f7023 Bug 1220882 - Use LazyLogModule in MP4Metadata. r=kinetik
Use the new LazyLogModule to instantiate a log for the rust
mp4parse test code instead of using indiscriminate printf()s.

Access results with NSPR_LOG_MODULES=MP4Metadata:5.
2015-11-02 16:19:00 -08:00
Randell Jesup
ab137c3506 Bug 1176340: short-circuit self-assignment of DesktopDisplayDevice r=jib 2015-11-02 16:51:59 -05:00
Ralph Giles
0f8b14b1fe Bug 1219047 - Call rust mp4parser with logging. r=kinetik
Add a helper for passing the initialization segments
of mp4 streams to the rust parser and log the result.

This runs real data through the new parser for testing
but doesn't use the results.

Code is conditional on MOZ_RUST_MP4PARSE to be defined
in confvars.sh. See bug 1219530.
2015-11-02 11:39:00 -08:00
Ralph Giles
38b78f20c9 Bug 1220754 - Update rust mp4parse to v0.1.3. r=kinetik
New upstream release.

- We now require rust 1.4 for Box::into_raw().
- New mp4parse::Error types.
- Fix memory exhaustion bug with bad ftyp boxes.
2015-11-02 10:15:00 -08:00
Ralph Giles
01d264dc6e Bug 1220754 - Update rust mp4parse import script for v0.1.3. r=kinetik 2015-11-02 10:14:00 -08:00
Birunthan Mohanathas
9985829ecc Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Makoto Kato
4e0d8487b0 Bug 1220043 - Add workaround for internal complier error by VS2015. r=rjesup 2015-10-30 17:08:30 +09:00
Makoto Kato
b119d108ab Bug 1219566 - Add aarch64 macro to webrtc/trunk/build/build_config.h. r=rjesup 2015-10-30 17:08:25 +09:00
Makoto Kato
e5902f9e56 Bug 1219228 - Generate correct source path of cpu-features.c. r=glandium 2015-10-30 12:23:42 +09:00
Ralph Giles
dd78673eec Bug 1219475 - Fix a comparison warning. r=gerald
Coercing the shift to a bool makes the comparison useless.
This just affects whether a warning is printed, so there's
no change to what files we accept.

We also need to mask of the high 'Starts with SAP' bit
which is usually set and would replace our false negative
with a false positive. ISO/IEC 14496-12:2012(E) sec. 8.16.3.2
2015-10-28 16:10:00 -07:00
Nicholas Nethercote
a34d272e2b Bug 1209812 (part 3) - Rename SurfaceFormat::R5G6B5 as R5G6B5_UINT16. r=Bas.
--HG--
extra : rebase_source : 1efcfb2522e823e55b5c7b77531a9d2c42c49c8b
2015-10-22 23:01:31 -07:00
Ralph Giles
a370569334 Bug 1219452 - Fix unused attribute warning. r=kinetik
Results of running the new update-rust script.

- Include some #[inline] directives missed in bug 1215234.
- Remove #[crate-name] directive to silence a warning caused
  by our building byteorder as a submodule instead of a crate.
2015-10-28 15:29:09 -07:00
Ralph Giles
5ffe01b5a7 Bug 1219452 - Update script for rust mp4parser. r=kinetik
Automate update and patching of the rust mp4 parser from the
upstream repo. A rev for mp4parse-rust can be passed on the
command line, but the byteorder crate's version is hardcoded.

Differences to adapt to the gecko build system are applied as
patches like we do for other media code.

Unfortunately cargo isn't much help here. It can download
crates for us, and we can set CARGO_HOME to force it to
use a specific directory, but it doesn't return enough
information to get the versions, etc. without some guessing/scraping
to find the packaged source.
2015-10-28 15:28:16 -07:00
Jean-Yves Avenard
aee82bf660 Bug 1195094: P1. Properly detects SPS changes for decoders requiring Annex B. r=cpearce 2015-10-29 00:46:31 +11:00
Byron Campen [:bwc]
2a66036623 Bug 1212908 - Update a=simulcast to match new grammar in 03 draft. r=mt
--HG--
extra : transplant_source : %16%0B8%F7%12%C4%E18j%BF%C4%F6%8A%F3%96p_%90Q%96
2015-10-20 10:31:26 -05:00
Nils Ohlmeier [:drno]
380290f5b6 Bug 1198883 - Part 2: Added WebRTC ICE candidates to Telemetry. r+vladan
--HG--
extra : transplant_source : %19%C7%F3%06%7F%86%08%3Bx%C4%C7%E8%F7Q%D1%0EN%AE%E6%EC
2015-10-08 14:44:50 -07:00