Commit Graph

121 Commits

Author SHA1 Message Date
Jean-Yves Avenard
f097259d54 Bug 1139779: Part1. Extract display dimension from SPS NAL. r=rillian 2015-03-10 21:19:41 +11:00
Edwin Flores
93a6194c82 Bug 1140933 - Handle empty subsample encryption information in SampleIterator - r=cpearce 2015-03-09 13:55:33 +13:00
Anthony Jones
f5ae0bc523 Bug 1135544 - Create an abstract base class for a track demuxer; r=kinetik 2015-03-05 17:30:44 +13:00
Jean-Yves Avenard
f1d818df55 Bug 1134064: Part3. Don't evict partial data and make resource unplayable. r=k17e 2015-02-20 14:19:14 +13:00
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
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
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
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
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
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
Carsten "Tomcat" Book
095c10e5cb Backed out changeset 3af0cab9d0de (bug 1098126) 2014-12-15 09:03:12 +01:00
Carsten "Tomcat" Book
3080af2cd7 Backed out changeset 3ecd5b8c293a (bug 1098126) 2014-12-15 09:03:10 +01:00
Carsten "Tomcat" Book
b943c950c9 Backed out changeset 732d6e4e6bed (bug 1098126) 2014-12-15 09:03:08 +01:00
Carsten "Tomcat" Book
b604517fda Backed out changeset 7da16258c33b (bug 1098126) 2014-12-15 09:03:06 +01:00
Nigel Babu
e71f4d6e48 Backed out changeset cdf7d7507577 (bug 1110608) for non-unified build failure on CLOSED TREE 2014-12-15 12:43:40 +05:30
Anthony Jones
8490163f41 Bug 1110608 - Add CENC support to MoofParser; r=edwin 2014-12-15 17:43:59 +13:00
Anthony Jones
04765e3b40 Bug 1098126 - MoofParser fixes and disable for EME; r=mattwoodrow 2014-12-05 14:01:44 -08:00
Anthony Jones
fa1de4cb32 Bug 1098126 - Add CENC support to MoofParser; r=edwin 2014-12-15 17:43:59 +13:00