Commit Graph

3521 Commits

Author SHA1 Message Date
sajitk
aec22fe652 Bug 1219480 - Replace PRLogModuleInfo with LazyLogModule in the media directory. r=rillian 2015-11-11 06:52:00 +01:00
Gerald Squelart
cff0b2878e 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
659072efa9 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
c48a53f547 Bug 1216748 - p3. Ensure 'covr' data size cannot create underflow - r=rillian 2015-11-11 12:36:05 +01:00
Gerald Squelart
ca34be4966 Bug 1216748 - p2. Handle failed malloc in Metadata storage - r=rillian 2015-11-11 12:35:52 +01:00
Gerald Squelart
27227cfb4b Bug 1216748 - p1. Added test case with different 'covr' sizes - r=rillian 2015-11-11 12:35:38 +01:00
Nils Ohlmeier [:drno]
a9cff2f915 Bug 1208278 - improved STUN request timeout handling. r=bwc 2015-10-21 00:37:48 -07:00
Ralph Giles
c83ad70490 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
aa807393be Bug 800564: Handle MJPEG decode errors r=abr 2015-11-09 13:08:06 -05:00
Nils Ohlmeier [:drno]
d0dad70b11 Bug 1220441 - Improve gather trickle ice unit tests. r=bwc r=mjf 2015-11-02 14:57:30 -08:00
hsteinbr
d668b69a20 Bug 1211656 - GUM Constraints for screen sharing don't affect stream resolution. r=jib 2015-11-04 19:06:00 +01:00
Jeff Muizelaar
a6619f653b 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
a324fcb2cf Bug 1185230 - p1: Added mp4 test case to libstagefright gtest - r=rillian 2015-11-05 23:20:00 +01:00
Gerald Squelart
d310d5ffcd 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
6f747000b0 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
0ad546303f Bug 1181215 - p1: Added mp4 test case to libstagefright gtest - r=rillian 2015-11-05 19:11:00 +01:00
Gerald Squelart
0715dff455 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
9cffa6cb8c Bug 1181220 - p2: Check if MIME types are valid - r=rillian 2015-11-05 19:10:00 +01:00
Gerald Squelart
231df268aa Bug 1181220 - p1: Added mp4 test case to libstagefright gtest - r=rillian 2015-11-05 19:08:00 +01:00
Gerald Squelart
de60be8ede 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
b901b1e726 Bug 1181223 - p1: Added mp4 test case to libstagefright gtest - r=rillian 2015-11-05 19:05:00 +01:00
Gerald Squelart
70ccd96efa 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
b950b52158 Bug 1181719 - p2: Check numBitsLeft before each getBits - r=rillian 2015-11-04 23:42:00 +01:00
Mike Hommey
ab61f03e7f 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
7fd290435b Bug 1221453 - Use ObjDirPaths for GENERATED_INCLUDES and merge with LOCAL_INCLUDES. r=gps 2015-11-06 09:59:21 +09:00
Nathan Froyd
ee9e46aaa1 Bug 1216611 - add mozilla::MakeUniqueFallible and convert uses throughout the tree; r=Waldo 2015-11-05 16:24:24 -05:00
Ralph Giles
1b6967d88b 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
473bc6f78e 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
c0a2c43c8b 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
1ffca7ceab Bug 1192813 - update the default candidate as new candidates arrive. r=bwc 2015-10-01 10:20:11 -05:00
Nicolas Silva
0203d5bf95 Bug 1219330 - Handle PlanaYCbCrImage::SetData failure. r=jya, jesup 2015-11-03 12:24:26 +01:00
Nils Ohlmeier [:drno]
c20885fcd8 Bug 1192403 - improve ICE TCP error message. r=mjf 2015-08-08 00:39:32 -07:00
Ralph Giles
1e64a2b2d3 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
ab0e50ab2b Bug 1176340: short-circuit self-assignment of DesktopDisplayDevice r=jib 2015-11-02 16:51:59 -05:00
Ralph Giles
2bae3a549f 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
600f85e613 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
55874ac18f Bug 1220754 - Update rust mp4parse import script for v0.1.3. r=kinetik 2015-11-02 10:14:00 -08:00
Birunthan Mohanathas
f6aa64ea3b Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Makoto Kato
f3ba1e191d Bug 1220043 - Add workaround for internal complier error by VS2015. r=rjesup 2015-10-30 17:08:30 +09:00
Makoto Kato
c87445dd53 Bug 1219566 - Add aarch64 macro to webrtc/trunk/build/build_config.h. r=rjesup 2015-10-30 17:08:25 +09:00
Makoto Kato
b8a737ae4f Bug 1219228 - Generate correct source path of cpu-features.c. r=glandium 2015-10-30 12:23:42 +09:00
Ralph Giles
031391d8e7 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
eed0822094 Bug 1209812 (part 3) - Rename SurfaceFormat::R5G6B5 as R5G6B5_UINT16. r=Bas. 2015-10-22 23:01:31 -07:00
Ralph Giles
43353d8d9e 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
84ae899c4a 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
f73bdbf160 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]
9e32d0f487 Bug 1212908 - Update a=simulcast to match new grammar in 03 draft. r=mt 2015-10-20 10:31:26 -05:00
Nils Ohlmeier [:drno]
04edf43b80 Bug 1198883 - Part 2: Added WebRTC ICE candidates to Telemetry. r+vladan 2015-10-08 14:44:50 -07:00
Nils Ohlmeier [:drno]
1376c9bc04 Bug 1198883 - Part 1: Improve ICE candidates telemetry probes. r=bwc 2015-10-08 13:32:32 -07:00
Kyle Huey
3c530551ba Bug 1216401: Eviscerate nsIDOMWindow, move still needed methods to nsPIDOMWindow. r=bz 2015-10-26 14:37:32 -07:00