Commit Graph

5342 Commits

Author SHA1 Message Date
Jean-Yves Avenard
305c960af0 Bug 1379190: P3. Remove omx-plugin 3rd party libs. r=cpearce
They weren't used on android API < 16.

MozReview-Commit-ID: F6WHG9ApGdC

--HG--
extra : rebase_source : be3a222cb27d081b5e73d660602706f226088ffd
2017-07-13 13:04:05 +02:00
Wes Kocher
b1c83de1b7 Backed out 2 changesets (bug 1381720) for linux build failures in content_decryption_module.h a=backout
Backed out changeset e4d9cb334352 (bug 1381720)
Backed out changeset 69f177823866 (bug 1381720)

MozReview-Commit-ID: DctOanJkHh7
2017-07-17 23:21:49 -07:00
Alex Chronopoulos
7712d5e660 Bug 1381015 - Update cubeb from upstream to a329c6a. r=kinetik
MozReview-Commit-ID: Gfutv4Tnvix

--HG--
extra : rebase_source : 219433f6d6008814f8ce2839700a418cf0fda711
2017-07-17 11:48:15 +03:00
Chris Pearce
9901d75b55 Bug 1381720 - Update content_decryption_module.h. r=gerald
Update to chromium revision 6e4c388c0117fe408b66fbede91081fb1018c5fe.

Includes cdm::ContentDecryptionModule_9 and cdm::Host_9 definitions,
HDCP definitions, and 10 and 12 bit image format definitions.

MozReview-Commit-ID: bYH3OBSzuT

--HG--
extra : rebase_source : d062d233c9a2b59aa5ae5c6e0584ed13b7c83e6e
2017-05-29 17:14:26 +12:00
Alfredo Yang
7c75a615c7 Bug 1379047 - treat JPEG as unknown codec since jpeg video track is not supported. r=kinetik
MozReview-Commit-ID: 1ufVK3uRYY3

--HG--
extra : rebase_source : 2d5133d2e84426c41df5b319ae3fdfa7d8f1ced9
2017-07-11 15:19:44 +08:00
Jean-Yves Avenard
c46ffaa380 Bug 1355048: P8. Implement WebrtcMediaDataDecoderCodec. r=jesup
This provides the abilty to use the PlatformDecoderModule interface, including hardware accelerated ones.

Code is disabled by default via the media.navigator.mediadatadecoder_enabled preference.

MozReview-Commit-ID: 7bWJXEK8CoO

--HG--
extra : rebase_source : df3801c02d3ea6e4c120a4836c4893e18e37d694
2017-07-01 01:51:00 +02:00
Jean-Yves Avenard
3db14f695e Bug 1355048: P7. Use Image's dimensions when available. r=jesup
Do not only rely on the dimensions retrieved via FrameSizeChange. Both the webrtc::VideoFrameBuffer object and layers::Image know about their dimensions.

We still need to keep the FrameSizeChange mechanism so that the attached media element know about its size before a frame is ready to be displayed.
We will revisit this problem later.

Additionally, don't assume that the frame's stride is the same as the frame's width. It may be true with the software decoders currently used, but it's not the norm.

MozReview-Commit-ID: BTY8lImoUbc

--HG--
extra : rebase_source : 83b07fe030bc19de89d5b5cc52a561fcf096be4d
2017-07-01 01:00:19 +02:00
Jean-Yves Avenard
33898e2e5d Bug 1355048: P6. Don't use unnecessary reentrant monitor. r=jesup
The methods using it aren't re-entrant. A mutex will do.

MozReview-Commit-ID: TIAL7Itp5A

--HG--
extra : rebase_source : 28e106b0bd7026a36b746d30b57896a5ed74bfa7
2017-07-01 00:01:55 +02:00
Jean-Yves Avenard
3b995b5876 Bug 1355048: P5. Remove RenderVideoFrame virtual method. r=jesup
It isn't used.
Amend documentation

MozReview-Commit-ID: Bg8rqzL034R

--HG--
extra : rebase_source : fd4edb87f64fb6b19e9bde612535462ad457a1af
2017-06-30 23:59:42 +02:00
Jean-Yves Avenard
7497341e3e Bug 1355048: P4. Remove unnecessary test, and make better use of monitor. r=jesup
MozReview-Commit-ID: F5qu7e6opZX

--HG--
extra : rebase_source : b2caf192904b5ead2a6711615938ce298fa564c0
2017-06-30 23:41:10 +02:00
Jean-Yves Avenard
b5bc435499 Bug 1355048: P3. Remove ImageHandle. r=jesup
This object isn't used and we can use the NativeHandle interface instead to pass this information.

MozReview-Commit-ID: ApMeQfJtZNJ

--HG--
extra : rebase_source : d9ea002a17eb712fb6b9c221739ff4da467fd04f
2017-06-30 20:46:32 +02:00
Jean-Yves Avenard
e24532a226 Bug 1355048: P2. Remove OMX h264 decoder. r=jesup
This platform is no longer support, and it could never have worked anyway.

MozReview-Commit-ID: 8qkVqQB07l8

--HG--
extra : rebase_source : 07d7f87cd133580e5e5461f7910aa848922f973a
2017-06-30 20:31:18 +02:00
Jean-Yves Avenard
ede50177a8 Bug 1355048: P1. Have WebrtcMediaDataDecoder placeholder. r=jesup
The code currently does nothing.

MozReview-Commit-ID: 6C0sLKIoJEV

--HG--
extra : rebase_source : d297494cdb3589e45bcf28b3ee9d5fac9601b200
2017-04-10 20:40:31 +02:00
Alfredo Yang
3c2e8f57fc Bug 1380468 - update rust parser. r=kinetik
MozReview-Commit-ID: CerH4JHFIP

--HG--
extra : rebase_source : 1f73e9cdb59eddbb4d3913186da75ea13c940466
2017-07-14 10:36:11 +08:00
Alfredo Yang
05427db62a Bug 1380468 - don't fallback when table size is too large. r=kinetik
MozReview-Commit-ID: 3oLLtIm8XqO

--HG--
extra : rebase_source : 840fe48d7a3640b30c6def92c0949df4fa2dd207
2017-07-14 10:34:52 +08:00
Wes Kocher
ee45f814bb Merge m-c to autoland, a=merge
MozReview-Commit-ID: GOb2bgdUd36
2017-07-14 17:27:36 -07:00
Andrew McCreight
cf00cf911b Bug 1379786, part 2 - Use nsContentUtils::GetSystemPrincipal in various places. r=mrbkap
MozReview-Commit-ID: KPXAqKeX4gI

--HG--
extra : rebase_source : 44fd734e7c5bbaba48bb25b882acc74cf0b81fb5
2017-07-10 14:24:54 -07:00
Ryan VanderMeulen
019bd042fc Merge autoland to m-c. a=merge 2017-07-14 09:16:03 -04:00
Andrea Marchesini
50f9ea47a3 Bug 1350958 - Finish labeling ProxyReleaseEvent, r=billm 2017-07-14 08:49:22 +02:00
Alex Chronopoulos
cfc97eef59 Bug 1380233 - Update cubeb pulse rust backend from upstream to 3b8cfba. r=kamidphish
MozReview-Commit-ID: CKfpyKaqLSe

--HG--
extra : rebase_source : 7675f4a21e45465939b0457e5ed34f88985e53fb
2017-07-13 13:07:32 +03:00
Alex Chronopoulos
90ea6c6cf8 Bug 1380233 - Update cubeb from upstream to bb18984. r=kinetik
MozReview-Commit-ID: FU0a9BWcOoN

--HG--
extra : rebase_source : e40749d95d6928e12a1d5e88c082b3a167e18924
2017-07-13 13:04:52 +03:00
Nils Ohlmeier [:drno]
5d8dce95ce Bug 1264479: added unit tests for [current|pending][Local|Remote]Description. r=bwc
MozReview-Commit-ID: 9KFsvkUtN4D

--HG--
extra : rebase_source : a99eec98ecfba16e4a9795d2dcb2e9a59c6cb7b5
2017-07-02 10:55:22 -07:00
Nils Ohlmeier [:drno]
0130c59aaf Bug 1264479: added implementation for [current|pending][Local|Remote]Description. r=bwc
MozReview-Commit-ID: AAnuN3YRhFH

--HG--
extra : rebase_source : 8b68125b5073783720fd5007973e4fad638698a9
2017-06-30 01:19:19 -07:00
Dan Minor
d2e8774b67 Bug 1378412 - Fix build error on Linux 32 bit due to a warning in task_queue_libevent.cc with clang 4.0; r=jesup
MozReview-Commit-ID: 5GW5CJMV7V5

--HG--
extra : rebase_source : df946b6a343a9b2b57224a62ad01c43a21337a33
2017-07-06 09:48:28 -04:00
Chris Pearce
2d16a23835 Bug 1351124 - Detect MP4 PSSH boxes in MOOF boxes and dispatch those in 'encrypted' events to content. r=jya
We detect when a PSSH is contained in a MOOF and stash them in the
mp4_demmuxer::Moof object.  When the mp4_demuxer::SampleIterator returns a
sample, we check whether it's the first sample from its MOOF, and if so, we
attach any PSSH boxes from that MOOF to the sample.  The TrackBuffersManager
checks samples upon demux, to see whether they have any EME init data attached,
and if so dispatches thoses to the HTMLMediaElement in 'encrypted' events.


MozReview-Commit-ID: F8GobKOr96F

--HG--
extra : rebase_source : 5366f1008979605aa8fc80216cd1d9cc2eefd346
2017-07-12 22:07:15 +12:00
Dan Minor
0503694d4f Bug 1328169 - Enable mediaconduit_unittests again; r=jesup
This removes the disabled TestDummyVideoWithTransport. It was disabled because
it was too flaky to run in automation. It is now broken locally as well due to
threading changes. Given that we can test whether the VideoConduit sends video
well enough in mochitests, I don't see any reason to invest time in fixing it
here, given that it is unlikely to work well in automation anyway.

This also rewrites the MaxFs tests to avoid sending a frame as that results in
a shutdown hang when run in automation.

I have checked that the TestDummyAudioWithTransport continues to work locally,
but I've left it disabled.

MozReview-Commit-ID: AmmUuATxAJa

--HG--
extra : rebase_source : 6416dfff78bc56d0fde131fd1eee40a7dfd597d5
2017-04-04 16:01:28 -04:00
Ryan VanderMeulen
dec7bdc30e Merge m-c to inbound. a=merge 2017-07-14 09:52:26 -04:00
Dan Minor
112117877f Bug 1379743 - Recalculate stride when scaling desktop capture; r=jesup
Currently we calculate the stride prior to calculating the scaled dimensions
which results in garbage video when scaling the input frame. This recalculates
the stride based upon the scaled dimensions.

MozReview-Commit-ID: BwOlFwzqdco

--HG--
extra : rebase_source : df9aab6dea81055ca557ba9ea0a9700f7347f389
extra : amend_source : 79e14700aeb5975f6303bc021d62c7f322d298db
2017-07-11 11:55:19 -04:00
Ryan VanderMeulen
5ea055c5ca Bug 1379663 - Update libjpeg-turbo to version 1.5.2. r=jrmuizel
--HG--
extra : rebase_source : 919c1758fadeb4ef83c760d3f9a1c5db50f61529
2017-07-13 20:12:47 -04:00
Christian Holler
8906b9f06b Bug 1379258 - Build webrtc/signaling code with coverage for LibFuzzer. r=gps
MozReview-Commit-ID: 16tpcWWImdv

--HG--
extra : rebase_source : 9a73da4b7ad50f1f6c120e69e99a130b94d87513
2017-07-07 20:43:59 +02:00
Alfredo Yang
63f786c8c7 Bug 1378607 - update rust mp4 parser. r=kinetik
MozReview-Commit-ID: DzZsShTgik3

--HG--
extra : rebase_source : e226b525f11b608246811aa253a77f63fe47a799
2017-07-07 10:57:42 +08:00
Alfredo Yang
61baf0378d Bug 1378607 - skip unknown codec type. r=kinetik
MozReview-Commit-ID: LX5lH3rOwC8

--HG--
extra : rebase_source : f47ce89f37421b2a5112a5ad387227d26a777195
2017-07-06 11:32:25 +08:00
Christian Holler
d759aba337 Bug 1378523 - Enable -fsanitize=trace-pc-guard for WebRTC in fuzzing. r=drno
MozReview-Commit-ID: 9Fr9bwD3RAq

--HG--
extra : rebase_source : 44015dffb643144702c9daf2a94316a2f348bf38
2017-07-05 23:43:24 +02:00
Sylvestre Ledru
4e9cf83ee8 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG

--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
Nico Grunbaum
91a00d57b9 Bug 1374465 - add framesDecoded to vid inbound stream stats;r=jib,smaug
MozReview-Commit-ID: GqbcQxOb69r

--HG--
extra : rebase_source : 9e25ffed93b6685c9c1848bc0d2642a4b8cda579
2017-07-03 14:17:40 -07:00
Nathan Froyd
9af0cd2f31 Bug 1377971 - followup - don't explicitly link to libm on Windows; r=bustage
On Windows, libm is just rolled into the CRT, so there's nothing special
we need to do here.

Landing this on a CLOSED TREE
2017-07-05 14:38:52 -04:00
Nathan Froyd
d2ffb5fefc Bug 1377971 - part 2 - link libavutil and libavcodec with libm; r=rillian
Both of these libraries call into libm for various reasons, but by
linking with the C++ compiler on most platforms, they never had to
declare their dependency on libm.  Future changes will make these
libraries link with the C compiler, which won't automatically link with
libm, so we need to make the dependency explicit prior to that change.
2017-07-05 14:05:10 -04:00
Carsten "Tomcat" Book
00fb80dbbc Merge mozilla-central to mozilla-inbound 2017-07-05 13:04:34 +02:00
Carsten "Tomcat" Book
b72c4833d5 merge mozilla-inbound to mozilla-central a=merge 2017-07-05 13:01:22 +02:00
Kershaw Chang
5279c25aa6 Bug 1343741 - Part3: Pass labelled event target to nsIProtocolProxyService::AsyncResolve, r=mayhemer
For dispatching runnable in nsPACMan, this patch sends a labelled event target via nsIProtocolProxyService::AsyncResolve.
2017-07-05 00:48:00 +02:00
Tom Ritter
da6bc01d39 Bug 1378038 MinGW causes a difference of opinion about whether or not we have unistd.h r=jya
MozReview-Commit-ID: JUr98CAbwWg

--HG--
extra : rebase_source : 3924a4489c59c24b458a56c181d8685598de141b
2017-07-03 22:55:55 -05:00
Phil Ringnalda
22cb9f77bb Merge m-c to m-i
MozReview-Commit-ID: H6zGgEm7oOM
2017-07-04 20:32:07 -07:00
Nicholas Nethercote
b003a6a704 Bug 1377803 - Remove an unnecessary plarena.h #include in WebRTC. r=drno,glandium.
We can avoid the symbol visibility problem by putting
sanitizer/asan_interface.h in the config/system-headers.

--HG--
extra : rebase_source : bc81a81ef8970c3544febf06631740208583c7fa
2017-07-04 09:58:38 +10:00
Nicholas Nethercote
5b549bf835 Bug 1377803 - Remove unnecessary plarena.h #includes. r=drno.
These files don't use PLArena or anything else from plarena.h.

--HG--
extra : rebase_source : 248d358ba8821eb275f3cb5ac275badfb466fa4c
2017-07-04 09:58:15 +10:00
Wes Kocher
5226f27e3e Merge m-c to inbound, a=merge
MozReview-Commit-ID: 7LPTKLiLUcj
2017-07-03 17:37:38 -07:00
Bill McCloskey
224d56eb18 Bug 1377222 - Eliminate nsITimer::InitWithFuncCallback in favor of InitWithNamedFuncCallback (r=froydnj)
MozReview-Commit-ID: 9zN9aAd7daA
2017-07-03 16:19:56 -07:00
Nicholas Nethercote
3e439bb4f8 Bug 1376638 - Minimize uses of prmem.h. r=glandium.
It's silly to use prmem.h within Firefox code given that in our configuration
its functions are just wrappers for malloc() et al. (Indeed, in some places we
mix PR_Malloc() with free(), or malloc() with PR_Free().)

This patch removes all uses, except for the places where we need to use
PR_Free() to free something allocated by another NSPR function; in those cases
I've added a comment explaining which function did the allocation.

--HG--
extra : rebase_source : 0f781bca68b5bf3c4c191e09e277dfc8becffa09
2017-06-30 19:05:41 -07:00
Carsten "Tomcat" Book
daa67cc9e3 merge mozilla-inbound to mozilla-central a=merge 2017-06-30 12:59:45 +02:00
Carsten "Tomcat" Book
be932371b2 Merge mozilla-central to autoland 2017-07-03 11:04:43 +02:00
Alfredo Yang
aa3bc119ce Bug 1374194 - update rust mp4 parser. r=kinetik
MozReview-Commit-ID: BcFrpt0E4Zn

--HG--
extra : rebase_source : aa833169c8c3dfb1a01b54e9ccdda9170de8f407
2017-07-03 11:09:36 +08:00
Randell Jesup
9f97858792 Bug 1375238: cast so 32-bit clang will compile r=dminor 2017-06-29 14:24:41 -07:00
Paul Adenot
404c800005 Bug 1341555 - Consolidate use of the MSG's AbstractMainThread, and stop having AbstractMainThread on MediaStreams. r=pehrsons
MozReview-Commit-ID: 5hGDQcfpH6a

--HG--
extra : rebase_source : 41bb678f37cfcdbc9912a25f45a5ca488084aabe
2017-06-29 11:30:57 -07:00
Paul Adenot
6e485889b8 Bug 1330360 - Create new MSGs for each nsPIDOMWindow. r=jesup
MozReview-Commit-ID: 5m1MGcLmT7J

--HG--
extra : rebase_source : b9c05464bb545c047b7718a048eb7e5de3fe275d
2017-06-23 16:18:34 -07:00
Alfredo Yang
28a8ae8f7a Bug 1374194 - add ac3/ec3 codec string. r=kinetik
MozReview-Commit-ID: 12t5WfJ6vPc

--HG--
extra : rebase_source : fbc17380188f458d2f5694aaac2dc30901c05eb8
2017-06-22 15:55:37 +08:00
Carsten "Tomcat" Book
5f00ae3a8b merge mozilla-inbound to mozilla-central a=merge 2017-06-29 15:47:04 +02:00
Ralph Giles
6860e65987 Bug 1376395 - opus: Update to the 1.2.1 release. r=rillian
New upstream release. Fixes an issue where the encoder would
incorrectly bandlimit signals to 12 kHz.

MozReview-Commit-ID: 91LsUhXDlxT

--HG--
extra : rebase_source : a7c476f073536521e614479e9e809a95b8873b07
2017-06-27 07:28:00 +02:00
Jan Keromnes
5257fdad8c Bug 1372977 - Use nullptr in /media and /dom/media (clang-tidy: modernize-use-nullptr). r=bwc 2017-06-28 15:38:00 -04:00
Carsten "Tomcat" Book
651904c8a0 Merge mozilla-central to autoland 2017-07-04 11:12:45 +02:00
Alfredo Yang
9c89ebe93e Bug 1372838 - ignore track with jpeg atom. r=kinetik
MozReview-Commit-ID: GrtkXcP4q1e

--HG--
extra : rebase_source : 30a09faf484c0245fbe706e63c5e9f93f85db2a2
2017-06-21 09:46:43 +08:00
Martin Stransky
a1ecc018be Bug 1377078 - removed '//' from #include path, r=jesup
MozReview-Commit-ID: 3m0tAkYRpom

--HG--
extra : rebase_source : 014bb4455e8454f23de6ecd903199ccddcc809b0
2017-06-29 11:15:14 +02:00
Christian Holler
428858f77b Bug 1376959 - Fix broken/missing LibFuzzerRegistry.h include. r=froydnj
MozReview-Commit-ID: WoHveMcQqt

--HG--
extra : rebase_source : 8da048c921f2aa2b248dce2ac646e67056ed4d8b
2017-06-28 15:20:11 -07:00
Kershaw Chang
c168ba5421 Bug 1343755 - Label runnables in DataChannelConnection. r=jesup 2017-06-27 10:39:00 -04:00
Dan Minor
a9df96e992 Bug 1355947 - Use TestNrSocket to build a fake ICE implementation for testing; r=drno
MozReview-Commit-ID: GhSX9t8DmTO

--HG--
extra : rebase_source : 8fea1934f88b378606b4af96d96c27560906fd88
extra : histedit_source : 4d6fc904c79c74ba8c24e816d70368ee3a850769
2017-04-18 06:54:34 -04:00
Dan Minor
1cc1e5734f Bug 1355947 - Add NatDelegate to TestNat; r=bwc
This allows tests to implement different packet handling schemes without having
to extend or modify TestNat itself.

MozReview-Commit-ID: 6DlESF3hfX6

--HG--
extra : rebase_source : ebb621f6f6ba00811cda7baef449caec126cb15e
2017-06-13 10:08:45 -04:00
Bill McCloskey
f115503a0b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Jan Beich
3fc9fd3377 Bug 1377093 - Enable mediapipeline tests on BSDs as well. r=dminor
MozReview-Commit-ID: GFE13Wlxl4z

--HG--
extra : rebase_source : 26960eff59621a466ea28655787585d8d442c308
2017-06-29 12:04:25 +00:00
Munro Mengjue Chiang
eeb635c70a Bug 1372687 - replace timestamp() (90kHz) with inputImage.render_time_ms() (Milliseconds). r=jesup
MozReview-Commit-ID: Do3FlBoNCZ6

--HG--
extra : rebase_source : 4a153cc3e3d74ecb3bf52af8da2b2eaef3fbac42
2017-06-21 13:51:53 +08:00
Ralph Giles
4b40c3d321 Bug 1376395 - opus: Update to the 1.2.1 release. r=kinetik
New upstream release. Fixes an issue where the encoder would
incorrectly bandlimit signals to 12 kHz.

--HG--
extra : rebase_source : 258692afe5a5d9602c76e71a679225bcd90951ef
2017-06-27 07:28:00 +02:00
Dan Minor
76ed84af24 Bug 1319489 - move mediapipeline_unittest to xul-gtest; r=drno
The test is rewritten to use mock implementations which are subclassed from real
implementations rather than using conditional compilation and separate classes.

MozReview-Commit-ID: 3jBEtEdNQOB

--HG--
rename : media/webrtc/signaling/test/mediapipeline_unittest.cpp => media/webrtc/signaling/gtest/mediapipeline_unittest.cpp
extra : rebase_source : dcf514c30793b67cc4114acd3f7fa1d01094df26
2017-01-10 09:56:58 -05:00
Jean-Yves Avenard
a59cb63f30 Bug 1374774: P11. Ignore SPS' timing information when comparing two SPS NALs. r=gerald
They can change from one SPS to the next, causing unecessary reconstruction of the decoder.

MozReview-Commit-ID: IhCnLuzGc2i

--HG--
extra : rebase_source : ff6020c10fe9d2eaee7ee8244c92d0c1535239be
2017-06-23 10:14:07 +02:00
Jean-Yves Avenard
6b75c7d481 Bug 1374774: P10. Attempt to reduce SPS change false positives. r=gerald
We now compare the decoded data rather than the raw data, otherwise as seen in video from bug 1372766, we keep draining the decoder. For some reasons the SPS NALs only differ by 1 byte at a time.

MozReview-Commit-ID: LdXinUZHjD4

--HG--
extra : rebase_source : 0aa768cbcbe5b6df0a2a01df1db61c93537899a2
2017-06-23 03:01:57 +02:00
Jean-Yves Avenard
dfd6aac637 Bug 1374774: P9. Only look for SPS changes in stream format change detection. r=gerald
All decoders appear capable of handling content change when just new PPS appears.
So we restrict the test to SPS changes.

MozReview-Commit-ID: LPSfMaTIj6C

--HG--
extra : rebase_source : f2a757e71dfab7938da4f064d073fc21f99edf53
2017-06-22 19:46:27 +02:00
Jean-Yves Avenard
ebf91b843f Bug 1374774: P8. Use new SPSNALIterator class. r=gerald
MozReview-Commit-ID: 1nrvInxgugz

--HG--
extra : rebase_source : 7ff257b422845ca0cba606448826260a25095b68
2017-06-23 02:08:41 +02:00
Jean-Yves Avenard
1a62966642 Bug 1374774: P7. Add SPSNAL and SPSNALIterator classes. r=gerald
We will use them to simplify the parsing of the extradata.

MozReview-Commit-ID: 5M5uGXAkkFb

--HG--
extra : rebase_source : bbd641203eb8bdcccb667d1a4e259c1a0462b11e
2017-06-23 01:51:42 +02:00
Jean-Yves Avenard
66b67006ed Bug 1374774: P6. Fix ByteReader constness. r=gerald
MozReview-Commit-ID: 8bQA189OOVF

--HG--
extra : rebase_source : f89e5782add618bfa2676798c5712d88925b2980
2017-06-22 22:50:08 +02:00
Jean-Yves Avenard
852878f9ea Bug 1374774: P5. Ignore duplicated SPS when reading NALs in-band. r=gerald
With some H264 streams, we find that the SPS/PPS NALs are duplicated on the stream. This caused us to treat it as if the content changed due to the discrepency between the extradata found in the MP4 metadata and what found inband.

When scanning for SPS NALs, we now attempt to detect duplicates, and if so ignore them.

MozReview-Commit-ID: D8OVOXSwEkY

--HG--
extra : rebase_source : cbaccee3d2b3d73fc5bf68acb425cb7f34d11fcf
2017-06-22 19:41:33 +02:00
Jean-Yves Avenard
234164b774 Bug 1374774: P3. Remove HasSPS method. r=gerald
It was only used in one spot, and incorrectly at that.

MozReview-Commit-ID: EWkkrAlYT7W

--HG--
extra : rebase_source : a19afe8f49e1e0fd430ddbff81978eb3511c5fb5
2017-06-22 14:44:21 +02:00
Jean-Yves Avenard
8f3424c201 Bug 1374774: P2. Add comment for HasSPS methods. r=gerald
MozReview-Commit-ID: Irvcx5XnPyp

--HG--
extra : rebase_source : 74bec6880424a3716a48a2016adabd4fec47a6d0
2017-06-22 14:42:46 +02:00
Jean-Yves Avenard
0ac3f1c5b4 Bug 1374774: P1. Move H264 methods into H264 code. r=gerald
HasSPS, ExtractExtraData and CompareExtraData have nothing to do with the handling of annex B format. They are raw H264 related methods.

It will also prevent in the following change to have cycling references between two headers.

MozReview-Commit-ID: FCs5aU4GcTU

--HG--
extra : rebase_source : a96fe0c70416d38690b0c2f1dee567b0b025e947
2017-06-22 14:36:11 +02:00
Peter Gerber
f6d02d64ec Bug 1375873 - fix panic in cubeb caused by PA_SINK_SET_FORMATS flag r=kamidphish
MozReview-Commit-ID: FQic63gUu51

--HG--
extra : rebase_source : f4e3f5e4258ba4fb08acb4fe85b73404c7bf7afe
2017-06-24 02:42:28 +02:00
Dan Glastonbury
8f2155024b Bug 1376000: Drop any unknown flags in SinkInfo.flags. r=padenot
Rust expect() is bad in C callbacks.  Replace TryFrom() with
from_bits_truncate() to drop any unknown PulseAudio flags.

MozReview-Commit-ID: 4RWFB5iGW6Z

--HG--
extra : rebase_source : 3b05d52ae1295825b4857c41135ff08029ad280c
2017-06-24 08:03:59 +10:00
Sebastian Hengst
261b25bf86 Backed out changeset 0d953ca28add (bug 1374774) for bustage at media/libstagefright/binding/H264.cpp(205). 'ptr' not declared. r=backout on a CLOSED TREE 2017-06-24 00:49:18 +02:00
Sebastian Hengst
f5e3176d23 Backed out changeset 3a889c491c7f (bug 1374774) 2017-06-24 00:48:23 +02:00
Sebastian Hengst
ca778305be Backed out changeset 361c9c559b7e (bug 1374774) 2017-06-24 00:48:18 +02:00
Sebastian Hengst
9ec478d2f5 Backed out changeset 728072e0f9b6 (bug 1374774) 2017-06-24 00:48:09 +02:00
Sebastian Hengst
40948cbef1 Backed out changeset c8d141cd0520 (bug 1374774) 2017-06-24 00:48:04 +02:00
Sebastian Hengst
465af7fa38 Backed out changeset e08d2c276f62 (bug 1374774) 2017-06-24 00:48:00 +02:00
Sebastian Hengst
9d3e7b7424 Backed out changeset ddc1ce464361 (bug 1374774) 2017-06-24 00:47:55 +02:00
Sebastian Hengst
18f07bbb9d Backed out changeset 662829e2529d (bug 1374774) 2017-06-24 00:47:51 +02:00
Sebastian Hengst
85a7e690f4 Backed out changeset 158ce5e7c75b (bug 1374774) 2017-06-24 00:47:46 +02:00
Sebastian Hengst
2650b6b3ca Backed out changeset 9cc4ece5f9d5 (bug 1374774) 2017-06-24 00:47:42 +02:00
Jean-Yves Avenard
829bc5bf3e Bug 1374774: P11. Ignore SPS' timing information when comparing two SPS NALs. r=gerald
They can change from one SPS to the next, causing unecessary reconstruction of the decoder.

MozReview-Commit-ID: IhCnLuzGc2i

--HG--
extra : rebase_source : b292c658098c378b0a6774f0f559a7b55e4903f6
2017-06-23 10:14:07 +02:00
Jean-Yves Avenard
7ce7d15a72 Bug 1374774: P10. Attempt to reduce SPS change false positives. r=gerald
We now compare the decoded data rather than the raw data, otherwise as seen in video from bug 1372766, we keep draining the decoder. For some reasons the SPS NALs only differ by 1 byte at a time.

MozReview-Commit-ID: LdXinUZHjD4

--HG--
extra : rebase_source : 022e7a011e3929846f00d1be6590f3ea1c697e7c
2017-06-23 03:01:57 +02:00
Jean-Yves Avenard
7d1e767817 Bug 1374774: P9. Only look for SPS changes in stream format change detection. r=gerald
All decoders appear capable of handling content change when just new PPS appears.
So we restrict the test to SPS changes.

MozReview-Commit-ID: LPSfMaTIj6C

--HG--
extra : rebase_source : 524316ba61ffff1549a0828685ac657abe687426
2017-06-22 19:46:27 +02:00
Jean-Yves Avenard
0392b68694 Bug 1374774: P8. Use new SPSNALIterator class. r=gerald
MozReview-Commit-ID: 1nrvInxgugz

--HG--
extra : rebase_source : ac6782a20d882fa0c67db1214102dbd956eae019
2017-06-23 02:08:41 +02:00
Jean-Yves Avenard
0e9d876c18 Bug 1374774: P7. Add SPSNAL and SPSNALIterator classes. r=gerald
We will use them to simplify the parsing of the extradata.

MozReview-Commit-ID: 5M5uGXAkkFb

--HG--
extra : rebase_source : e83c8995ebbc60359029f15334e91baaeb098bbd
2017-06-23 01:51:42 +02:00
Jean-Yves Avenard
8d489f9bb9 Bug 1374774: P6. Fix ByteReader constness. r=gerald
MozReview-Commit-ID: 8bQA189OOVF

--HG--
extra : rebase_source : 4f4e371c43da839ae6168241879d580b97435bb0
2017-06-22 22:50:08 +02:00
Jean-Yves Avenard
d2bb0f2ec4 Bug 1374774: P5. Ignore duplicated SPS when reading NALs in-band. r=gerald
With some H264 streams, we find that the SPS/PPS NALs are duplicated on the stream. This caused us to treat it as if the content changed due to the discrepency between the extradata found in the MP4 metadata and what found inband.

When scanning for SPS NALs, we now attempt to detect duplicates, and if so ignore them.

MozReview-Commit-ID: D8OVOXSwEkY

--HG--
extra : rebase_source : e28a8230fce4c0f361c4747fce342667d84bff45
2017-06-22 19:41:33 +02:00
Jean-Yves Avenard
bcd57adc64 Bug 1374774: P3. Remove HasSPS method. r=gerald
It was only used in one spot, and incorrectly at that.

MozReview-Commit-ID: EWkkrAlYT7W

--HG--
extra : rebase_source : 9c719bbf668eafaac0415580ffdfa0cea0942673
2017-06-22 14:44:21 +02:00
Jean-Yves Avenard
da6d087d1b Bug 1374774: P2. Add comment for HasSPS methods. r=gerald
MozReview-Commit-ID: Irvcx5XnPyp

--HG--
extra : rebase_source : fa2528239b3eabd838fa9ecc9dc0b2d7de3b25ef
2017-06-22 14:42:46 +02:00