Anthony Jones
0dabe31062
Bug 1133572 - Use new demuxer for all sample fetches; r=cpearce
2015-02-18 19:13:15 +13:00
Anthony Jones
172e0fca69
Bug 1133572 - Remove duplication of logic from GetNextKeyframeTime(); r=cpearce
2015-02-18 19:13:14 +13:00
Jean-Yves Avenard
16d343ec2f
Bug 1133478: Postpone parsing TRUN atom until we have all dependent atoms. r=k17e
...
Atoms may be out of order inside MOOF, in particular the TFDT may only be
defined after TRUN.
2015-02-17 16:22:52 +13:00
Bobby Holley
0a27305044
Bug 1127554 - Do a fallible allocation in SampleIterator::GetNext. v1 r=mattwoodrow
2015-02-13 12:19:38 -08:00
Bobby Holley
fcd008a482
Bug 1127554 - Make MP4Sample::Replace fallible. v1 r=mattwoodrow
2015-02-13 12:19:37 -08:00
Bobby Holley
c6ea1d671b
Bug 1127554 - Make MP4Sample::Prepend fallible. v1 r=mattwoodrow
2015-02-13 12:19:37 -08:00
Bobby Holley
9092b791ba
Bug 1127554 - Make MP4Sample::Pad fallible. v1 r=mattwoodrow
2015-02-13 12:19:36 -08:00
Bobby Holley
5314527fbc
Bug 1127554 - Get rid of infallible allocation in MP4Sample copy constructor. v2 r=mattwoodrow
2015-02-13 12:19:36 -08:00
Jean-Yves Avenard
d43c136448
Bug 1128939: Part3. Allocate media buffer internal memory dynamically. r=k17e
2015-02-12 18:52:12 +11:00
Jean-Yves Avenard
6cec06fc09
Bug 1128939: Part2. Make sure we limit read to buffer size and handle error nicely. r=k17e
2015-02-12 18:52:12 +11:00
Jean-Yves Avenard
911759aeb7
Bug 1128939: Part1. Ensure we have any space in the media buffer before writing. r=k17e
2015-02-11 17:40:13 +11:00
Jean-Yves Avenard
07ee477ad2
Bug 1129732: Part1. Dynamically adjust calculations using timestampoffset. r=mattwoodrow
...
Timestamp Offset calculations are now done exclusively by the Media Source
components which allow to recalculate them on the fly. By abstracting those
offsets it remove the need for the sub-decoders to handle them (which allows
to add WebM support).
2015-02-09 23:28:59 +11:00
Jean-Yves Avenard
4e885c361c
Bug 1129071: Add log error should we run out of memory. r=k17e
2015-02-09 23:28:58 +11:00
Jean-Yves Avenard
0aef6c3262
Bug 1128410: Part2. Make memory allocation dynamic. r=kentuckyfriedtakahe
...
Allocations are fallibles.
2015-02-02 21:36:51 +11:00
Jean-Yves Avenard
63be8f20a5
Bug 1128410: Lazily allocate the MP4 parser buffer. r=kentuckyfriedtakahe
...
This buffer is unsused for fragmented MP4. So we don't need to unecessarily
allocate it and block a chunk of 3MB data. Also, this removes the restriction
of playing YouTube video > 1080p
2015-02-02 21:36:48 +11:00
Edwin Flores
d8c025228d
Bug 1127115 - Make MP4 parser assertion non-fatal - r=ajones
2015-01-30 16:54:12 +13:00
Edwin Flores
ab5055d859
Bug 1118597 - Parse sinf boxes in MoofParser - r=jya
2015-01-19 21:39:00 +13:00
Edwin Flores
85b37c325a
Bug 1118597 - Re-enable MoofParser for encrypted MP4 streams - r=jya
2015-01-27 18:35:36 +13:00
Brian Smith
c5dd29443f
Bug 1119072, Part 8: Work around internal compiler error in VS2015 (libstagefright), r=cpearce
...
--HG--
extra : rebase_source : a92130375280523b216562e06f11c6e3f755b9e6
2015-01-08 23:08:36 -08:00
Jean-Yves Avenard
7cb22b680c
Bug 1123507: Prevent out of bound memory access. r=edwin
...
--HG--
extra : rebase_source : 48c8a833b0b394d0c35754b2311f54e8bf8c5b66
2015-01-20 13:42:30 +11:00
Jean-Yves Avenard
e0e1eb6214
Bug 1116056: Ensure all atoms read are valid. r=mattwoodrow
...
--HG--
extra : rebase_source : 6d5575bd0886b70dec23e1bccb638b1591eef5e9
2015-01-20 13:42:27 +11:00
Chris Pearce
38ce54e92d
Bug 1123498 - Make MP4Reader skip-to-next-keyframe less aggressively. r=mattwoodrow
2015-01-20 15:20:43 +13:00
Jean-Yves Avenard
48590e96ad
Bug 1120075: Use Movie Extend Header's duration as fallback when available. r=kentuckyfriedtakahe
...
--HG--
extra : rebase_source : 54e554e183d9072908ec02b6c14de5c2f46e8204
2015-01-16 23:49:01 +11:00
Jean-Yves Avenard
66fb59bc00
Bug 1121757: Prevent out of bound memory access should AVC data be invalid. r=kinetik
2015-01-16 20:27:11 +11:00
Jean-Yves Avenard
1405328928
Bug 1121342: Re-search for Moof if an initial attempt to find it failed. r=kentuckyfriedtakahe
...
--HG--
extra : rebase_source : 009d8048a8917d5ff1a1660b0b6cf8220743cba8
2015-01-16 15:48:43 +11:00
Brian Smith
63b6fa3518
Bug 1119776, Part 2: Avoid defining snprintf when MSVC provides it (video), r=giles
...
--HG--
extra : rebase_source : 0ea7b0b1a65b31993df689784dd17e741a0c312e
2015-01-08 22:32:03 -08:00
Anthony Jones
cda9b848d1
Bug 1116056 - Change MOZ_ASSERT() to NS_WARNING() in Box::Read(); r=jya
2015-01-14 16:57:14 +13:00
Bobby Holley
8e73f2d0e8
Bug 1119456 - Make MP4Demuxer's blocking reads non-blocking and hoist blocking into callers with a hacky retry strategy. r=k17e
2015-01-11 13:24:26 -08:00
Carsten "Tomcat" Book
b788f3bf6a
Merge mozilla-central to b2g-inbound
2015-01-08 15:44:18 +01:00
Ethan Lin
e23a01e36b
Bug 1118698 - Add namespace for automic functions to prevent redefine error. r=ajones
2015-01-07 03:41:00 -05:00
Bobby Holley
4e76b3f561
Bug 1064128 - Implement support for timestampOffset in segments mode. r=k17e,r=cajbir
2015-01-07 15:58:55 -08:00
Chris Pearce
d13c7ffa8b
Bug 1118593 - Disable MoofParser for encrypted streams. r=kentuckyfriedtakahe
2015-01-07 17:09:27 +13:00
Ralph Giles
738a4eca45
Bug 1111328 - Add missing include. r=jya
...
Fixes problems with non-unified builds.
2015-01-05 13:20:00 -08:00
Bobby Holley
547538412a
Bug 1115749 - Assert that we hold the monitor at all the MP4Demuxer API entry points. r=rillian
...
MP4Demuxer accesses shared state (index, moofparser) in lots of shared helper
routines, so we should assume that it's not safe to touch the demuxer at all
without holding the lock (unless demonstrated otherwise). This stuff should
probably be redesigned, but that's a problem for another day.
2014-12-29 16:10:16 -08:00
Jean-Yves Avenard
707059a642
Bug 1111328: Add H264 SPS NAL decoder part #2 (VUI and HDR). r=kentuckyfriedtakahe
2014-12-24 23:11:35 +11:00
Jean-Yves Avenard
186b832d70
Bug 1111328: Add H264 SPS NAL decoder. r=kentuckyfriedtakahe
2014-12-24 23:11:35 +11:00
Jean-Yves Avenard
3e53b4dc03
Bug 1113073: Add H264 3-bytes NAL size support. r=kentuckyfriedtakahe
2014-12-23 14:41:21 +11:00
Jean-Yves Avenard
bd3199bb51
Bug 1113403: Make MP4Sample destructor virtual. r=kinetik
2014-12-23 14:40:29 +11:00
Jean-Yves Avenard
2f02a73c68
Bug 1110534: Add AVC Annex B to AVCC format conversion utility. r=kentuckyfriedtakahe
...
Based on original code by Baptiste Coudurier extracted from FFmpeg's libavformat
2014-12-23 14:36:09 +11:00
Jean-Yves Avenard
4f568fc6f0
Bug 1110534: Use more accurate names in MP4Sample and Annex B utility functions. r=kentuckyfriedtakahe
2014-12-23 14:36:09 +11:00
Jean-Yves Avenard
4eb0a91706
Bug 1110534: Retrieve SPS and PPS from AVCC stream when necessary. r=kentuckyfriedtakahe
...
In avc3 or annex B stream, the AVCC extradata doesn't always contain the SPS and PPS required to
decode the first frame. Add method to extract SPS and PPS and construct an AVCC extradata.
2014-12-23 14:36:09 +11:00
Jean-Yves Avenard
5434717edd
Bug 1110534: Simplify MP4 extradata handling. r=kentuckyfriedtakahe
2014-12-23 14:36:09 +11:00
Bobby Holley
7a0f2ef977
Bug 1114383 - Assert that access to mMoofs goes through a monitor. r=k17e
2014-12-21 22:04:36 -08:00
Jean-Yves Avenard
9d528ef1b8
Bug 1111311: Use 32 bits signed for storing CTS in order to properly calculate PTS. r=kentuckyfriedtakahe
2014-12-17 22:21:10 +11:00
Anthony Jones
41c61aa68a
Bug 1110608 - Add CENC support to MoofParser; r=edwin
2014-12-16 18:10:46 +13:00
Anthony Jones
bc61bebaa3
Bug 1098126 - Fix build bustage; r=mattwoodrow
2014-12-16 18:10:46 +13:00
Anthony Jones
ad0036715b
Bug 1098126 - MoofParser fixes and disable for EME; r=mattwoodrow
2014-12-05 14:01:44 -08:00
Anthony Jones
f6f2abfc31
Bug 1098126 - Add CENC support to MoofParser; r=edwin
2014-12-16 18:10:45 +13:00
Anthony Jones
e09ac45947
Bug 1098126 - MoofParser forced moof read; r=mattwoodrow
2014-12-16 18:10:45 +13:00
Anthony Jones
2d798b6a2b
Bug 1098126 - Use MoofParser to read fragmented MP4 data; r=mattwoodrow
2014-12-16 18:10:45 +13:00