Граф коммитов

4591 Коммитов

Автор SHA1 Сообщение Дата
Jan-Ivar Bruaroey 409780816c Bug 1311048 - Pick out Firefox windows as scary by pid (only OSX atm). r=jesup
MozReview-Commit-ID: DwUodsRWswm

--HG--
extra : rebase_source : 0ab4002dfbbb4a0cf0265764d22c598256198d82
2016-09-30 13:23:42 -04:00
Andreas Pehrson ee5849fc81 Bug 1301675 - Received tracks from RTCPeerConnection are stoppable. r=jib
MozReview-Commit-ID: L8ag0BEWL39

--HG--
extra : rebase_source : bcb197473f8b44aa2e01c0724f609efb74409387
2016-09-16 15:18:09 +02:00
Chris Peterson acb9007769 Bug 1313905 - Fix -Wincompatible-pointer-types-discards-qualifiers warnings in webrtc/signaling. r=bwc 2016-11-02 21:20:40 -07:00
Wes Kocher df5dbf81cc Merge central to inbound a=merge 2016-11-02 17:31:08 -07:00
Andreas Pehrson 159d4ead9e Bug 1301675 - Remove MediaStreamTrackSource::mIsRemote. r=jib
MediaStreamTrack.remote is no longer part of the spec.

MozReview-Commit-ID: BgHJ1zNIoWN

--HG--
extra : rebase_source : 11022eb420cbdb0c7aa5aa7814cf35330f4170b9
2016-09-12 15:59:58 +02:00
Ralph Giles b9e0fc97c3 Bug 1314460 - Update rust mp4parse to v0.6.0. r=kinetik
Result of running the update script.

MozReview-Commit-ID: 4rqFqaFJ028

--HG--
extra : rebase_source : 011cd38d524e2609e2656a084c2ac920d407488f
2016-11-01 16:07:32 -07:00
Ralph Giles 5c1056e5fa Bug 1314460 - Update mp4parse import script for v0.6.0. r=kinetik
Update the import script to reference the latest published release.

Add a cargo-update step to the script. Without this the gecko build
will fail if the declared crate versions change from what is recorded
in the in-tree Cargo.lock files.

Also make it fail on first error.

MozReview-Commit-ID: 6IDK6jdkSm1

--HG--
extra : rebase_source : 0e09eb311a8ba59ad4075f43ab0d9f8a07074e89
2016-11-01 15:54:48 -07:00
Nils Ohlmeier [:drno] d933579cce Bug 852665: add support for ICE disconnected state. r=bwc
MozReview-Commit-ID: 5ONTc2Wz72O

--HG--
extra : rebase_source : 4f99ebbd4fa0e566965f94dc7b5d999bbbfd7b85
2016-10-28 22:22:17 -07:00
Alex Chronopoulos 0dc4f7ef3b Bug 1314316 - Restore use of ceilf method instead of roundf. r=jesup
MozReview-Commit-ID: 5Wv5dqSy3B8

--HG--
extra : rebase_source : 23e09c1e37fc70626d8ef4178b7342117ddfc92f
2016-11-01 18:34:55 +02:00
Ryan VanderMeulen a41f7d1058 Merge autoland to m-c. a=merge 2016-10-29 09:12:45 -04:00
Dan Minor 19b1cf1c88 Bug 1312431 - Make buffers passed into Get10msTone match specified maximum buffer size; r=jesup
MozReview-Commit-ID: I7UNWfzHi6I

--HG--
extra : rebase_source : b51572e3784685df3fd69f3560729e73c5fb9c1d
2016-10-28 08:58:19 -04:00
Dan Minor 143157e3ea Bug 1312431 - Support for higher sample rates in dtmf_inband.cc can not be reached; r=jesup
This also fixes a potential buffer overflow as the buffer size
was hard coded to be the old maximum buffer size of 320.

MozReview-Commit-ID: 5DD8vWlIDPQ

--HG--
extra : rebase_source : 60a4406510409f4080362061fd770c16ce534fa6
2016-10-24 11:36:29 -04:00
Phil Ringnalda b6eec64324 Merge m-c to a CLOSED TREE m-i
MozReview-Commit-ID: 2JxLeQ8GYIX
2016-10-27 20:36:38 -07:00
Nils Ohlmeier [:drno] 414a36866f Bug 1309585: use default address dicovery as backup for interface iteration. r=bwc
MozReview-Commit-ID: ds9rDlddi9

--HG--
extra : rebase_source : 418bb84e925eefe5ae6b687277a05ec2acd273de
2016-10-24 15:55:02 -07:00
Jan-Ivar Bruaroey 6f1eb05923 Bug 1313246 - allow empty username and credential in RTCPeerConnection constructor. r=bwc
MozReview-Commit-ID: 6EJ46BXxXW5

--HG--
extra : rebase_source : e9a5ddc25c61708371ce1c89d172dda432226b25
2016-10-26 20:41:07 -04:00
Chris Pearce 812726afd0 Bug 1308821 - Ensure ClearKey doesn't parse a keyids initdata format session type parameter. r=kikuo
The specification doesn't require there to be a 'type' member of
the keyids init data format.

MozReview-Commit-ID: 7mOm7KwyyuC

--HG--
extra : source : c9fb674f3cb8dff4fe8734e0426e67825878015d
2016-10-09 20:42:01 -07:00
Chris Pearce d0ce61581c Bug 1313266 - Make gmp-clearkey reject with TypeError instead of InvalidAccessError on invalid input. r=gerald
The spec expects this, and now we pass more web platform tests.

MozReview-Commit-ID: 9HJFp2ebczk

--HG--
extra : source : 6d50c9068b52d8846e4d528d150f3f3dbd9a233d
2016-10-27 14:59:02 +13:00
Nils Ohlmeier [:drno] 9ddb815b69 Bug 1304920: remove fingerprint attribute from plain binding requests. r=bwc
MozReview-Commit-ID: KpqQfHzv7zn

--HG--
extra : rebase_source : 976af858b54a6ddda23b19310352359659260b71
2016-09-22 17:56:29 -07:00
Martin Thomson c09374be30 Bug 1311383 - Use unique pointers for DTLS transport and related, r=Cykesiopka
MozReview-Commit-ID: 79wKQtJjBNP

--HG--
extra : rebase_source : 1f5c7f2417c25d17fb99bc55eff8a6b2e5a333ba
2016-10-20 11:29:58 +11:00
Nils Ohlmeier [:drno] 32fa85e614 Bug 1309641: only store a single pre-answer request per 5 tuple. r=bwc
MozReview-Commit-ID: KzrGGRRU28J

--HG--
extra : rebase_source : 97136e8ef20a61130154af695ec09598e91078c5
2016-10-26 21:43:27 -07:00
Nils Ohlmeier [:drno] 5aa0b21062 Bug 1313527: exit red parser loop if stroul failed. r=mjf
MozReview-Commit-ID: JaRO7F7tz0j

--HG--
extra : rebase_source : 8087ef5e9f7ec99b624a02acc591eeefcc62b7f0
2016-10-27 16:48:10 -07:00
Alfredo.Yang 3ae304e16a Bug 1309079 - support mp3-in-mp4 in rust mp4 parser. r=kinetik
MozReview-Commit-ID: LieZ5O222LT

--HG--
extra : rebase_source : 5662d37ba5ec01ba55d518725b145a442e61c3e4
2016-10-13 10:12:28 +08:00
Phil Ringnalda 62997f0b4b Backed out changeset 9b132e52aa0a (bug 1308821) for wpt encrypted-media/clearkey timeouts and unexpected passes 2016-10-26 19:07:49 -07:00
Phil Ringnalda d41a1c1da4 Merge m-c to autoland 2016-10-26 18:57:56 -07:00
Phil Ringnalda 4012e61cc3 Merge m-i to m-c, a=merge
MozReview-Commit-ID: CysKZsvYf69
2016-10-26 18:40:50 -07:00
Chris Pearce 04141020eb Bug 1313202 - Make ClearKey resolve MediaKeySession.closed promise before promise returned by MediaKeySession.close(). r=gerald
MozReview-Commit-ID: KWwN6W07Cba

--HG--
extra : rebase_source : 4eb210a5816981a26e9792e3141564e6b235ea20
2016-10-27 10:35:16 +13:00
Chris Pearce b6dbc9a4a9 Bug 1308821 - Ensure ClearKey doesn't parse a keyids initdata format session type parameter. r=kikuo
The specification doesn't require there to be a 'type' member of
the keyids init data format.

MozReview-Commit-ID: 7mOm7KwyyuC

--HG--
extra : rebase_source : 88b729ae0b0f851763bbd06ec48bae2d6ac1c47e
2016-10-09 20:42:01 -07:00
Glenn Randers-Pehrson 632f7ac5b5 Bug 1311776 - Update in-tree libpng to version 1.6.26. r=jrmuizel 2016-10-20 15:10:00 -04:00
Ralph Giles 1f1a694612 Bug 1303888 - Fix a logging typo. r=kinetik
The error message refers to video, not audio tracks. Looks like
a cut-and-paste error.

MozReview-Commit-ID: J6ur36FMSRF

--HG--
extra : rebase_source : 626e4b3287ce268d9daee26610a599c721116148
2016-10-25 16:43:28 -07:00
Ralph Giles a45686ff52 Bug 1303888 - Accept flac from the rust mp4parse demuxer. r=kinetik
Recognize FLAC as an audio mimetype in MP4Metadata and prefer
the rust demuxer for it. Stagefright does not support this.

MozReview-Commit-ID: 7T4tCSCCNBk

--HG--
extra : rebase_source : b69c6e35d4e48c4d419856ee979eae893dbc72b1
2016-10-25 16:42:12 -07:00
Ralph Giles c0890a4a2c Bug 1303888 - Update rust mp4parse. r=kinetik
Update to the latest upstream master, including skipping padding
at the end of some boxes, esds parsing and flac support.

MozReview-Commit-ID: GdHEQIrtyLB

--HG--
extra : rebase_source : 97e1d09725d813e0f2b31bed6ce80e16b0701fbe
2016-10-25 19:25:18 -07:00
Phil Ringnalda 0a5faee022 Merge m-c to autoland 2016-10-25 22:08:13 -07:00
Phil Ringnalda 8cf1367dd8 Merge m-i to m-c, a=merge
MozReview-Commit-ID: FnnOWQ3xKPi
2016-10-25 22:03:31 -07:00
Munro Mengjue Chiang 2837f878f5 Bug 1309469 - Crash [@ webrtc::ViECaptureImpl::NumberOfCaptureDevices]; r=jesup
MozReview-Commit-ID: Di4uXmJe6oz

--HG--
extra : rebase_source : 9dcdeffea1566864f030d14d907a339b657768c1
2016-10-24 18:19:16 +08:00
Tushar Saini (:shatur) f99a704b53 Bug 1312814 - Remove SDK_INT>8. r=sebastian
MozReview-Commit-ID: 5LcClh9REEH

--HG--
extra : rebase_source : 9376494b708a511e68f6589886a74f872e3de84c
2016-10-25 23:32:47 +05:30
Nils Ohlmeier [:drno] 8f782c9d56 Bug 1306714: Use RFC 7983 detection for DTLS packets. r=mt
MozReview-Commit-ID: L1BYAFmJOug

--HG--
extra : rebase_source : 33d52ee88d646803014d9e20c3b6969833ebda15
2016-09-30 00:00:54 -07:00
Byron Campen [:bwc] f21b7f1efe Bug 1312304: Remove ICE policy "none". r=drno,smaug
MozReview-Commit-ID: 2adsRJ6pFnD

--HG--
extra : rebase_source : 03a22d7d990d8959b6eb6d23a6cbc4821ad68428
2016-10-24 13:36:56 -05:00
Tushar Saini (:shatur) 84a83b607a Bug 1264596 - GeckoApp: Remove mCameraView and related code. r=gcp,sebastian
MozReview-Commit-ID: ACgp4iIAigw

--HG--
extra : rebase_source : e0c92b6d8e68d82b7db3c195e22a457dbc43d95d
2016-10-20 19:27:59 +05:30
Matthew Gregan 02eeb9d19a Bug 1311346 - Remove obsoleted patches. r=me 2016-10-21 13:06:24 +13:00
Michael Froman 8f050f2fb0 Bug 1285646 - Clean up the repetitive code in sdp_parse_attr_fmtp. r=drno
MozReview-Commit-ID: 9umKSyVh0Ha

--HG--
extra : rebase_source : 51d37871ec30e85715d7a708121457697c172e21
2016-07-13 18:25:22 -05:00
Munro Mengjue Chiang c1187fc9f8 Bug 1308412 - fix setCaptureHeight() failure; r=jesup,jib
MozReview-Commit-ID: 47mgoY4sOSw

--HG--
extra : rebase_source : f63ed9b3a39e3251accd7a6c35a6a4332db6c773
2016-10-26 18:08:51 +08:00
Munro Mengjue Chiang ed70e2a07e Bug 1308412 - retrieve CVImageBuffer from CMSampleBuffer if it doesn't contain any CMBlockBuffer; r=jesup,jib
MozReview-Commit-ID: BERDnKJ0i3t

--HG--
extra : rebase_source : e5b41547e2f7ddf5f4bd1759e701176ce83e7d90
2016-10-26 18:08:18 +08:00
Randell Jesup a7d2d90fd4 Bug 1315283: allow VP9 encoder in webrtc to reconfigure if the input resolution changes r=TD-Linux 2016-11-12 02:57:17 -05:00
Randell Jesup 2e7cd37170 Bug 1315288: Add input checks for VP9 r=rillian 2016-11-12 02:57:14 -05:00
Paul Adenot 262e1f8a04 Bug 1311346 - add cubeb_log.h to the tree
MozReview-Commit-ID: BHvbZzns6WK
2016-10-20 16:36:29 +02:00
Paul Adenot 3dd5af16d3 Bug 1311346 - Add cubeb_export.h to the tree.
--HG--
extra : histedit_source : 7d538af3b6990e25fa4e4c6257589d5977fa3d95
2016-10-20 16:17:25 +02:00
Paul Adenot 527bc745cd Bug 1311346 - Update libcubeb to revision 9eacd3144. r=kinetik
--HG--
extra : rebase_source : efeb55082e9a1a0a60d96b717dbb3767e9a54280
2016-10-20 16:01:01 +02:00
Makoto Kato 0a7933f196 Bug 1310956 - Use arm64 for target_arch into GYP. r=glandium
Google's projects using GYP use arm64 for target_arch instead of aarch64.  So we should use it for moz.build generator.

MozReview-Commit-ID: J4SLKhCqyUo

--HG--
extra : rebase_source : c902736ba0248eb5a3dfe94c174cb96374ebb94c
extra : histedit_source : 52620e73d6457078b28402dc6ef33f78f1c5425d
2016-10-21 14:48:24 +09:00
Matthew Gregan b123dc8ba5 Bug 1308418 - Avoid double-constructing owned_critical_section via copy constructor. r=jya
This uplifts the upstream change 22557d466eceb6ff6ba70ae30d2dcd87648cde0b from
https://github.com/kinetiknz/cubeb as a standalone patch suitable for uplift.
2016-10-19 14:42:03 +13:00
Randell Jesup 68f10870b7 Bug 1307042: generate fake audio for getUserMedia from MSG callbacks r=pehrsons 2016-10-03 14:35:36 -04:00
Nils Ohlmeier [:drno] 298dae8a64 Bug 1310305: skip responding when failed to parse STUN message. r=mjf
MozReview-Commit-ID: D9Ox0nt81bF

--HG--
extra : rebase_source : c26e9826ee0f8a677acf22ccaeecb31d9cecce50
2016-10-14 12:59:22 -07:00
Munro Mengjue Chiang c7407c854f Bug 1308792 - clear DeviceInfoDSSingleton::GetInfo() in DeviceInfoDS dtor to prevent illegal access crash; r=jesup,jib
MozReview-Commit-ID: Fy6Qu6sONgr
2016-10-16 01:15:13 +08:00
Carsten "Tomcat" Book d6850a3a86 merge mozilla-inbound to mozilla-central a=merge 2016-10-17 11:19:02 +02:00
Nils Ohlmeier [:drno] edb7f8ff31 Bug 1310061: avoid interop issues with SHA384. r=mt
MozReview-Commit-ID: 67cJdDWCMAs

--HG--
extra : rebase_source : 0ea1074feacc41ec021db9a8d5d1df0c36147ad2
2016-10-14 11:49:32 -07:00
Kilik Kuo 26bd0bc8ef Bug 1308424-[Part1] Verify the license response size while updating session. r=cpearce
MozReview-Commit-ID: IXZLWnbYTn9

--HG--
extra : rebase_source : fbf015e56443320c55960121e4d59379d9ffabcd
2016-10-07 18:16:30 +08:00
Gerald Squelart 8f130692e8 Bug 1307945 - ByteWriter asserts that all writes should succeed - r=jya
Writes should always be small, so if any fails, we are in big trouble anyway.
(Effectively ByteWriter is infallible.)

MozReview-Commit-ID: CJVsrTx0PFh

--HG--
extra : rebase_source : fa4dd3230382620a393c8555338e8956df83f748
2016-10-16 19:10:42 +11:00
Gerald Squelart 6b07d57631 Bug 1307945 - Minor style fix - r=jya
MozReview-Commit-ID: 6kTDaJoM9hG

--HG--
extra : rebase_source : 58576b7d4239b03e76ad37b28a8bbed43f5849c3
2016-10-13 15:33:53 +11:00
Michael Froman f9a7f32bd9 Bug 1290049 - only process ice connection state change if new state differs from old state. r=bwc
MozReview-Commit-ID: KAM1XVIn4Qw

--HG--
extra : rebase_source : 18244caa318b8bccd969cd50069265b467477f26
2016-10-11 22:14:23 -05:00
Dan Minor 17432ed5b9 Bug 1308298 - Remove duration and interToneGap attributes from RTCDTMFSender; r=jib,smaug
MozReview-Commit-ID: KfcPGIBt0bb

--HG--
extra : rebase_source : 4e398bbef7010592e20b5bf7b903a4452b24305a
2016-10-11 14:05:08 -04:00
Nils Ohlmeier [:drno] ecd5c4c6b9 Bug 1309129: enable redirecting of nICEr logging to NSPR logging. r=bwc
MozReview-Commit-ID: ESB6F0MlKdQ

--HG--
rename : media/mtransport/rlogringbuffer.cpp => media/mtransport/rlogconnector.cpp
rename : media/mtransport/rlogringbuffer.h => media/mtransport/rlogconnector.h
rename : media/mtransport/test/rlogringbuffer_unittest.cpp => media/mtransport/test/rlogconnector_unittest.cpp
extra : rebase_source : 33ea6c07b909c1972a2e9150241536ba56890609
2016-10-11 00:17:26 -07:00
Ronald S. Bultje 8898c08155 Bug 1293996: Workaround AMD hardware related crash. r=jya
MozReview-Commit-ID: IONAxzyag1b
2016-10-13 17:56:22 +11:00
Carsten "Tomcat" Book ec76d557f1 Merge mozilla-central to autoland 2016-10-12 12:07:59 +02:00
Carsten "Tomcat" Book 2844380bd4 merge mozilla-inbound to mozilla-central a=merge
--HG--
rename : media/gmp-clearkey/0.1/ClearKeyCencParser.cpp => media/psshparser/PsshParser.cpp
rename : media/gmp-clearkey/0.1/ClearKeyCencParser.h => media/psshparser/PsshParser.h
rename : media/gmp-clearkey/0.1/gtest/TestClearKeyUtils.cpp => media/psshparser/gtest/TestPsshParser.cpp
rename : media/gmp-clearkey/0.1/gtest/moz.build => media/psshparser/gtest/moz.build
2016-10-12 12:01:48 +02:00
Munro Mengjue Chiang 0bbb96335e Bug 1308792 - protect the critical section accessing device_info_cs_; r=jesup
MozReview-Commit-ID: GGxtHUPAk6N

--HG--
extra : rebase_source : 335cb7962dbd5e8f2900ca7984c24e327924d9ec
2016-10-11 14:30:28 +08:00
Phil Ringnalda 798404cf65 Backed out changeset f47181dc6ad7 (bug 1308424) for unexpectedly passing encrypted-media-update-disallowed-input.html 2016-10-11 19:23:29 -07:00
Kilik Kuo d3d72c3b63 Bug 1308424- Verify the license response size while updating session. r=cpearce
MozReview-Commit-ID: AmyCOutPvWn

--HG--
extra : rebase_source : 8fd1c98ba5039fc55ee3e5ac8b9cfc61f9dee4e2
2016-10-07 18:16:30 +08:00
James Cheng ff7e2ab548 Bug 1309171 - Reduce an unnecessary copy by universal reference. r=gerald
MozReview-Commit-ID: 6lED8WcGtje

--HG--
extra : rebase_source : e246e607f0a48b7cc12683eac3bc0f37639936dc
2016-10-11 18:07:06 +08:00
Randell Jesup d53aa7abf7 Bug 1307433 - WebRTC: implement RFC6051 ("Rapid Synchronisation of RTP Flows") r=pkerr
Actually just the first part of it (sending RTCP at the start of a flow),
not the RTCPFB message
2016-10-11 15:04:39 -04:00
Chris Pearce c0fc92ff04 Bug 1308076 - Ensure Primetime PSSH boxes pass the PSSH validator. r=jwwang
Primetime PSSH boxes don't use the common encryption system ID.
So to ensure we don't break any existing Primetime players, we
must allow PSSH boxes with the Primetime system ID to pass the
PSSH validator.

MozReview-Commit-ID: 3q58FKLQXgV

--HG--
extra : rebase_source : a7a0ca3d38fb027ad6de23d8260043b3193536f4
extra : source : b94fe60732fb7d3a6630c976284eaabd28b271f3
2016-10-10 23:47:28 -07:00
Chris Pearce cc1ef8649c Bug 1308076 - Move PSSH parser gtests into media/psshparser/gtest. r=glandium
MozReview-Commit-ID: G760z2sIQpO

--HG--
rename : media/gmp-clearkey/0.1/gtest/TestClearKeyUtils.cpp => media/psshparser/gtest/TestPsshParser.cpp
rename : media/gmp-clearkey/0.1/gtest/moz.build => media/psshparser/gtest/moz.build
extra : source : a409d51e3efa0099344ff4b8ebc414ddb50ce829
2016-10-07 21:34:54 +13:00
Chris Pearce a00a07e25a Bug 1308076 - Consistently put expected value where it's expected in EXPECT_EQ() in Pssh Parser gtest. r=jwwang
The expected value comes first in the EXPECT_EQ gtest macro. So reorder our
calls to this macro in the Pssh Parser gtests to match that.

This makes it easier to read what's the expected value when the test fails.


MozReview-Commit-ID: LJ4ND2gRPi4

--HG--
extra : source : 34254ffcdb6fe9e053449210556fb2333f7a205a
2016-10-07 21:17:42 +13:00
Chris Pearce 591af22fc7 Bug 1308076 - Fixup PSSH parser gtests. r=jwwang
We're now obliged to be stricter, taking from the example of the Web Platform
Tests.

MozReview-Commit-ID: AJNDoRZ9BF8

--HG--
extra : source : 5180fdf042b03362b882ceb3a8ac0e664049bd64
2016-10-07 21:12:18 +13:00
Chris Pearce 3bb7ad5953 Bug 1308076 - Rename CLEARKEY_KEY_LEN to CENC_KEY_LEN. r=jwwang
This better reflects that it's used for all CENC keys, not just ClearKey keys.

MozReview-Commit-ID: 9uCzDKVDLjc

--HG--
extra : source : 3307b3e0d411ceb9888f10afdbebc07ab9efce61
2016-10-07 11:14:04 +13:00
Chris Pearce ef74aeb8a8 Bug 1308076 - Use PsshParser to validate CENC init data. r=jwwang
Now that we can link gmp-clearkey's PSSH parser into Gecko, we can
simply use that inside MediaKeySession to validate that the CENC
init data matches the spec.

This change enforces that CENC init data uses the common system Id.
As far as I can tell, Widevine only uses that now.

MozReview-Commit-ID: HrlKQHcv5DI

--HG--
extra : source : f61138f1030e87026eb432e83d36e46c81e55b33
2016-10-06 23:17:44 +13:00
Chris Pearce 8b3c096a18 Bug 1308076 - Don't statically link mfplat.lib into gmp-clearkey. r=glandium
We're loading functions from that library dynamically in gmp-clearkey anyway,
we don't need to statically link this.


MozReview-Commit-ID: AKwP5aWLsK3

--HG--
extra : source : 857f21f44316ef8125fedf8db22b5d3191d9c7e9
2016-10-07 11:20:05 +13:00
Chris Pearce 35e13f726f Bug 1308076 - Move ClearKeyCencParser to PsshParser library. r=glandium
To validate the PSSH init data passed to EME, I'd like to reuse the same
PSSH parser that the ClearKey CDM shared library uses. So move the code
out of gmp-clearkey and into its own library, so we can link it statically
into code that needs to use it.



MozReview-Commit-ID: 7xSUSmCueJz

--HG--
rename : media/gmp-clearkey/0.1/ClearKeyCencParser.cpp => media/psshparser/PsshParser.cpp
rename : media/gmp-clearkey/0.1/ClearKeyCencParser.h => media/psshparser/PsshParser.h
extra : source : 78dcbc5d3c26547c63269eb14034a67863cf28de
2016-10-06 20:23:38 +13:00
Sebastian Hengst 2bb0f9b7a2 Backed out changeset 68f1d429368c (bug 1308076)
--HG--
rename : media/psshparser/PsshParser.cpp => media/gmp-clearkey/0.1/ClearKeyCencParser.cpp
rename : media/psshparser/PsshParser.h => media/gmp-clearkey/0.1/ClearKeyCencParser.h
2016-10-11 10:41:25 +02:00
Sebastian Hengst b3064bba8d Backed out changeset b2ef285116b3 (bug 1308076) 2016-10-11 10:41:20 +02:00
Sebastian Hengst 67e4cd1c41 Backed out changeset 40ce3fa30dfa (bug 1308076) 2016-10-11 10:41:16 +02:00
Sebastian Hengst bd612c1fd3 Backed out changeset 4ce11c2f2e69 (bug 1308076) 2016-10-11 10:41:08 +02:00
Sebastian Hengst 8718521d1f Backed out changeset 11fc2627544c (bug 1308076) 2016-10-11 10:41:04 +02:00
Sebastian Hengst 57c3796c20 Backed out changeset 2ce4a30bdf86 (bug 1308076) 2016-10-11 10:41:00 +02:00
Sebastian Hengst 8a98e7cddd Backed out changeset 5862e3ccc989 (bug 1308076) 2016-10-11 10:40:56 +02:00
Sebastian Hengst 1eb3faf861 Backed out changeset 6d16f00b9858 (bug 1308076) 2016-10-11 10:40:52 +02:00
Chris Pearce e0b2194579 Bug 1308076 - Ensure Primetime PSSH boxes pass the PSSH validator. r=jwwang
Primetime PSSH boxes don't use the common encryption system ID.
So to ensure we don't break any existing Primetime players, we
must allow PSSH boxes with the Primetime system ID to pass the
PSSH validator.

MozReview-Commit-ID: 3q58FKLQXgV

--HG--
extra : rebase_source : aac2a8349d8e9dfccae3c37a47549245fb1fc0e3
2016-10-10 23:47:28 -07:00
Chris Pearce c18aa7f516 Bug 1308076 - Move PSSH parser gtests into media/psshparser/gtest. r=glandium
MozReview-Commit-ID: G760z2sIQpO

--HG--
rename : media/gmp-clearkey/0.1/gtest/TestClearKeyUtils.cpp => media/psshparser/gtest/TestPsshParser.cpp
rename : media/gmp-clearkey/0.1/gtest/moz.build => media/psshparser/gtest/moz.build
extra : rebase_source : 80fc084137ca84f9263cb056c27f296b8f05111c
2016-10-07 21:34:54 +13:00
Chris Pearce ba946f19e0 Bug 1308076 - Consistently put expected value where it's expected in EXPECT_EQ() in Pssh Parser gtest. r=jwwang
The expected value comes first in the EXPECT_EQ gtest macro. So reorder our
calls to this macro in the Pssh Parser gtests to match that.

This makes it easier to read what's the expected value when the test fails.


MozReview-Commit-ID: LJ4ND2gRPi4

--HG--
extra : rebase_source : 85ca2dcff57354253b801fbd598c89698c74c2d6
2016-10-07 21:17:42 +13:00
Chris Pearce 2f998b9d61 Bug 1308076 - Fixup PSSH parser gtests. r=jwwang
We're now obliged to be stricter, taking from the example of the Web Platform
Tests.

MozReview-Commit-ID: AJNDoRZ9BF8

--HG--
extra : rebase_source : 79b13d1d7d1b6b6b4a382b6a17af81606af608fa
2016-10-07 21:12:18 +13:00
Chris Pearce a0900b6998 Bug 1308076 - Rename CLEARKEY_KEY_LEN to CENC_KEY_LEN. r=jwwang
This better reflects that it's used for all CENC keys, not just ClearKey keys.

MozReview-Commit-ID: 9uCzDKVDLjc

--HG--
extra : rebase_source : dfd7fe864be6825a86dfed4f60b448a5edac286f
2016-10-07 11:14:04 +13:00
Chris Pearce d4606df737 Bug 1308076 - Use PsshParser to validate CENC init data. r=jwwang
Now that we can link gmp-clearkey's PSSH parser into Gecko, we can
simply use that inside MediaKeySession to validate that the CENC
init data matches the spec.

This change enforces that CENC init data uses the common system Id.
As far as I can tell, Widevine only uses that now.

MozReview-Commit-ID: HrlKQHcv5DI

--HG--
extra : rebase_source : ccf8e217d87dfa85478578f52469dc7383fd6c9b
2016-10-06 23:17:44 +13:00
Chris Pearce 48ecbebd03 Bug 1308076 - Don't statically link mfplat.lib into gmp-clearkey. r=glandium
We're loading functions from that library dynamically in gmp-clearkey anyway,
we don't need to statically link this.


MozReview-Commit-ID: AKwP5aWLsK3

--HG--
extra : rebase_source : 23ab95e7bb2f756ef1df7f97b96ec7da0953533f
2016-10-07 11:20:05 +13:00
Chris Pearce 10c6ab2576 Bug 1308076 - Move ClearKeyCencParser to PsshParser library. r=glandium
To validate the PSSH init data passed to EME, I'd like to reuse the same
PSSH parser that the ClearKey CDM shared library uses. So move the code
out of gmp-clearkey and into its own library, so we can link it statically
into code that needs to use it.



MozReview-Commit-ID: 7xSUSmCueJz

--HG--
rename : media/gmp-clearkey/0.1/ClearKeyCencParser.cpp => media/psshparser/PsshParser.cpp
rename : media/gmp-clearkey/0.1/ClearKeyCencParser.h => media/psshparser/PsshParser.h
extra : rebase_source : 3f621aa1d99c6a73f6b5f3ca9d1f84022266a833
2016-10-06 20:23:38 +13:00
Ted Mielczarek fed17ce3e1 bug 1305506 - Remove some cruft from a webrtc gyp file. r=jesup
Things seem to build OK without this, and it's breaking some new code I added in gyp_reader.

MozReview-Commit-ID: 6ccaXZ0mRTj

--HG--
extra : rebase_source : c1e8acb39f863b3ff62492cf70e74748cb74e795
2016-08-16 10:09:03 -04:00
Phil Ringnalda 080c63d412 Merge m-i to m-c, a=merge
MozReview-Commit-ID: 6YHoSP3exdY
2016-10-08 16:48:33 -07:00
Sebastian Hengst cdcc9e20da Bug 1304829 - rename RELEASE_BUILD to RELEASE_OR_BETA: main part. r=ted,Mossop
MozReview-Commit-ID: 1lCt0xTMV5O
2016-10-08 11:14:49 +02:00
Phil Ringnalda c21623fc42 Merge m-c to m-i
MozReview-Commit-ID: Kp60wHZauGi
2016-10-06 20:26:20 -07:00
Phil Ringnalda fd7b7476c2 Merge m-i to m-c, a=merge
MozReview-Commit-ID: 93ZdJbK1x05
2016-10-06 19:58:18 -07:00
Kilik Kuo 4d162fcd4a Bug 1303922 - Part 1: Make EME keystatuschanged information notified in batch. r=cpearce
MozReview-Commit-ID: IeExaQ62qTF

--HG--
extra : transplant_source : t%D4%AFxu%D6%40%F8hU%D2%94%D4q8q%EDy%08-
2016-10-04 17:18:46 +08:00
Kilik Kuo 21f4832a64 Bug 1303662 - Avoid accessing uninitialized member while debugging. r=cpearce
MozReview-Commit-ID: IX4bI9HB8Ub

--HG--
extra : rebase_source : c3d33f757e228788546b234711f3f8e4f51424ce
2016-10-07 18:40:34 +08:00
Dan Minor a62e23429f Bug 1291715 - Add support for 44100 and 48000 Hz sample rates to DtmfInband; r=jesup
The DtmfInband class does not support sample rates above 32000. This adds
support for 44100 and 48000.

The 'a' coefficients were calculated in python as:

int(round(32768*math.cos(2*math.pi*f/fs)))

The 'ym2' coefficients were calculated in python as:

int(round(16383*math.sin(2*math.pi*f/fs)))

where f was in: [697, 770, 852, 941, 1209, 1336, 1477, 1633] and fs was in:
[8000, 16000, 32000, 44100, 44800].

The calculated values were slightly off the existing values at 8000 Hz,
but agreed at 16000 and 32000 Hz.

MozReview-Commit-ID: GIzyUSyecR4

--HG--
extra : rebase_source : edbde6e8c8b6cfd1c44c808022849c688364745b
2016-09-14 16:07:46 -04:00