Jean-Yves Avenard
0e46a78213
Bug 1154683: Fix potential size overflow. r=kentuckyfriedtakahe
2015-04-20 14:35:45 +10:00
Felix Janda
19a724ba1d
Bug 1151202 - libstagefright: Fix compilation for systems without <sys/cdefs.h>. r=cpearce
...
--HG--
extra : rebase_source : 984a06e3228614fcd25561e15d54c5c3bda836e6
2015-02-05 22:26:24 +01:00
Jean-Yves Avenard
52a7a65989
Bug 1153094: Rename LargeDataBuffer and DataBuffer object. r=cpearce
...
This causes conflicts with webRTC libraries that use those names already. The
linker appears to get it wrong and calls the destructor of the wrong class.
--HG--
extra : rebase_source : 809221de3e5bde540bd40406f061f3865e4c4f00
2015-04-15 15:27:38 +10:00
Jean-Yves Avenard
4623f4873e
Bug 1153049: Part4. Remove redundant mHasAudio/mHasVideo member. r=cpearce
...
--HG--
extra : rebase_source : f53f194f7e8c870024c39270a626bc41f2f79d0b
2015-04-14 15:17:51 +10:00
Jean-Yves Avenard
378df808cf
Bug 1153049: Part3. Using AudioInfo/VideoInfo object. r=cpearce
...
This remove all remaining references to stagefright/MP4 specific objects.
--HG--
extra : rebase_source : 0f34f7851c0f22532dffb88c32ac83ebb962a7cc
2015-04-14 15:16:32 +10:00
Jean-Yves Avenard
ea02e1a1f5
Bug 1152658: Use MediaRawDataWriter to access MediaRawData::mCrypto. r=cpearce
...
--HG--
extra : rebase_source : 20332ef7e99c0183d219c0b1b739aae24f35d907
2015-04-14 15:15:46 +10:00
Chris Double
9f5a6dea5a
Bug 1148203 - Fix build errors with combinations of enable/disable of ffmp4/ffmpeg/eme - r=cpearce,ted
...
Fixes build error with all three disabled. Prevents other combinations
that cause build errors by detecting them at configure time and displaying
an error message.
2015-04-13 11:07:14 +12:00
Jean-Yves Avenard
1a95012eb4
Bug 1153097: Use 32 bits int to compare frequencies. r=rillian
...
Also potentially fix out of bound memory access.
2015-04-12 18:22:07 +10:00
Jean-Yves Avenard
aa270b640c
Bug 1152652: Part1. Use mStandardMozillaStyle for crypto classes. r=edwin
2015-04-09 21:14:56 +10:00
Jean-Yves Avenard
e6858f0af5
Bug 1150853: Part2. Use new MediaRawObject across the board. r=cpearce.
2015-04-09 21:14:55 +10:00
Jean-Yves Avenard
a441d92aa3
Bug 1150853: Part1. Create MediaRawData object type. r=cpearce
...
This object extends MediaData and will be used to contain demuxed compressed
data.
2015-04-09 21:14:55 +10:00
Jean-Yves Avenard
dfb7ffd7e5
Bug 1147744: Part2. Properly calculate cropping value. r=k17e
...
If chroma_format_idc isn't defined, chroma_format_idc shall be inferred to be
equal to 1 (4:2:0 chroma format).
Also, ignore nonsensical cropping values as per spec.
2015-04-08 14:26:38 +10:00
Jean-Yves Avenard
cb95c32927
Bug 1147744: Part1. Round down display size. r=k17e
2015-04-08 14:26:35 +10:00
Jean-Yves Avenard
d7cb635d09
Bug 1151378: Part3. Fix constness and remove use of reference to refcounted ptr. r=k17e
2015-04-07 20:33:18 +10:00
Jean-Yves Avenard
1d47a88bf2
Bug 1151378: Part2. Remove libstagefright depencies from Crypto config. r=edwin
2015-04-07 20:33:18 +10:00
Jean-Yves Avenard
f17c6eb49e
Bug 1151378: Part1. Remove of now unused code path. r=k17e
...
libstagefright is now only used to read the metadata.
2015-04-07 20:33:18 +10:00
Jean-Yves Avenard
c74f6b186a
Bug 1145926: Part1. Refactor AVCC wrapper. r=cpearce
...
Add support for future handling of audio remuxing before conversion.
2015-04-07 20:33:17 +10:00
Jean-Yves Avenard
37d978104c
Bug 1151360: Allow playback of extended AAC profile audio track. r=k17e
2015-04-07 20:33:17 +10:00
Jean-Yves Avenard
7a51dcf194
Bug 1149278: Limit box reads to resource length. r=k17e
...
Also, add a safeguard where we will never attempt to read a mp4 box over 32MiB
2015-04-07 20:33:16 +10:00
Brian Smith
0c89cfc24d
Bug 1150357: Remove libstagefright's stdbool.h to fix MSVC 2015 CTP 6 build, r=cpearce
...
MSVC 2013 and later already provide a real stdbool.h. libstagefright's
stdbool.h breaks the build in MSVC 2015 CTP 6 because MSVC 2015's internal
headers #include <stdbool.h> expecting it to be the real thing.
--HG--
extra : rebase_source : a7cd3deef2aa3b0f890a4ca3180831b1fb0dfaf4
2015-04-01 18:49:24 -10:00
Edwin Flores
46cbfd3c6b
Bug 1147689 - Pass the session ID(s) of an encrypted frame into EME CDMs - r=cpearce
2015-03-26 22:57:36 +13:00
Jean-Yves Avenard
b5404f62e0
Bug 1145815: Do not report discontinuities less than 35ms. r=k17e
...
--HG--
extra : rebase_source : eb8fa50d7036ceae23756e10d0ad815605aae3f8
2015-03-25 22:32:21 +11:00
Matt Woodrow
500d1b3448
Bug 1145037 - Remove invalid assertion in MoofParser. r=ajones
...
--HG--
extra : rebase_source : 9a2b2b0f588fd9a7730e050306417b64725a2e94
2015-03-26 12:57:58 +13:00
Martin Storsjö
5b69c33e9b
Bug 1143491: Parse all trun boxes in MP4 fragments, not only the first one. r=jya
2015-03-23 11:39:27 +02:00
Jean-Yves Avenard
04753af547
Bug 1146222: use nsAutoCString to store mimetype string. r=karlt
...
We use a nsAutoCString as the mimetype is typically less than 64 characters
and prevent a heap allocation (and the unecessary fragmentation linked to it)
2015-03-24 14:45:17 +11:00
Ehsan Akhgari
883849ee32
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Jean-Yves Avenard
c6184f39cb
Bug 1145517: Part2. Follow exactly ITU H.264 7.3.1. r=cpearce
...
We wouldn't have properly handled sequence of more than two zeros and 0x03.
2015-03-20 19:44:39 +11:00
Jean-Yves Avenard
8dc876b17b
Bug 1145517: Properly skip the NAL's emulation prevention byte. r=cpearce
...
Fix typo.
If a sequence of 0x000003 is found, the 0x03 byte is to be skipped.
2015-03-20 18:39:11 +11:00
Jean-Yves Avenard
8749413e81
Bug 1142433: Properly scale duration found in movie extend header box. r=k17e
...
--HG--
extra : rebase_source : 8d02111faf03bdbcd854ee4c0118919bc18253af
2015-03-18 14:10:57 +11:00
Jean-Yves Avenard
c93f86dbea
Bug 1100210: Mark MPEG2 Layer 1,2,3 audio as MP3. r=k17e
...
Extract data from ESDS atom's objectTypeIndication
2015-03-17 16:42:47 +11:00
Jean-Yves Avenard
ddd2384f4e
Bug 1143516: Ignore SPS's aspect ratio if value is nonsensical. r=cpearce
2015-03-17 16:42:02 +11:00
Jean-Yves Avenard
e939a4d7a8
Bug 1139271: Part3. Only consider a Box to be available if entire content is available. r=k17e
2015-03-16 23:08:56 +11:00
Jean-Yves Avenard
306c482476
Bug 1139271: Part2. Ignore partial moof. r=k17e
2015-03-16 23:08:56 +11:00
Jean-Yves Avenard
f907f6cb3d
Bug 1139271: Part1. Add logging when encountering invalid atoms. r=k17e
2015-03-16 23:08:55 +11:00
Bobby Holley
ca9369a50d
Bug 1141785 - Force all audio samples to be keyframes. r=k17e
2015-03-15 21:29:55 -07:00
Chris Peterson
df594b2b0d
Bug 1143336 - Fix and suppress -Wunreachable-code-return warnings in media code. r=cajbir
2015-03-14 13:47:51 -07:00
Phil Ringnalda
47752f8090
Back out 1ee5457afe8c (bug 1142433) for frequent w-p-t-3 failures
...
CLOSED TREE
2015-03-12 20:28:14 -07:00
Jean-Yves Avenard
e08bc83ae4
Bug 1142433: Properly scale duration found in movie extend header box. r=k17e
...
--HG--
extra : rebase_source : c6e68f8c0510a4449f77cebbbfcc39ae4fbd24c3
2015-03-13 09:42:28 +11:00
Jean-Yves Avenard
adf3e336a3
Bug 1128381: Part3. Handle on the fly video format change. r=cpearce
...
Add monitoring of the current SPS NAL and destroy/recreate H264 decoder as
required.
--HG--
extra : rebase_source : fbab04b0ae3b4be42eea34a1c6f1b19bf39ad2f0
2015-03-12 11:07:19 +11:00
Jean-Yves Avenard
06ae6e08e7
Bug 1128381: Part2. Properly extract extradata from AVC1 sample. r=rillian
...
--HG--
extra : rebase_source : a67173bfcc4184211ab0b90e3b7634b1730288d5
2015-03-12 11:07:19 +11:00
Jean-Yves Avenard
b54607fb46
Bug 1128381: Part1. Don't assert on empty extra_data. r=kentuckyfriedtakahe
...
--HG--
extra : rebase_source : abb00650dc676d413d761f45085241df6a6cdd81
2015-03-12 11:07:19 +11:00
Jean-Yves Avenard
60fd94d4f2
Bug 1139779: Part1. Extract display dimension from SPS NAL. r=rillian
2015-03-10 21:19:41 +11:00
Edwin Flores
96a3f8c908
Bug 1140933 - Handle empty subsample encryption information in SampleIterator - r=cpearce
2015-03-09 13:55:33 +13:00
Anthony Jones
8eff7a3ee8
Bug 1135544 - Create an abstract base class for a track demuxer; r=kinetik
2015-03-05 17:30:44 +13:00
Jean-Yves Avenard
fc5089207f
Bug 1134064: Part3. Don't evict partial data and make resource unplayable. r=k17e
2015-02-20 14:19:14 +13:00
Jean-Yves Avenard
aa31157b0a
Bug 1130450: Properly handle MP4 with Apple QT extension. r=k17e
2015-02-19 15:37:11 +13:00
Anthony Jones
28c7d528c1
Bug 1133572 - Use new demuxer for all sample fetches; r=cpearce
2015-02-18 19:13:15 +13:00
Anthony Jones
250218269a
Bug 1133572 - Remove duplication of logic from GetNextKeyframeTime(); r=cpearce
2015-02-18 19:13:14 +13:00
Jean-Yves Avenard
6dffa7b1fa
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
2cd7434422
Bug 1127554 - Do a fallible allocation in SampleIterator::GetNext. v1 r=mattwoodrow
2015-02-13 12:19:38 -08:00