gecko-dev/dom/media/gtest
Dan Minor 9ec710cad0 Bug 1376873 - Fix fake h.264 encoder; r=pehrsons
Upstream webrtc.org has added more stringent checks for SPS and PPS identifiers.
This breaks out the SPS and PPS NALUs into separate binary blobs to ensure that
the identifiers are zero. It is also necessary to set pragma pack so that the
structure does not contain values which trick the parser into thinking a new
NALU has begun. The ENCODED_FRAME_MAGIC is changed for a similar reason. All of
the constants were determined by running mochitests with the actual h.264
encoder.

For similar reasons, this also changes things so that only IFrames are sent,
as the upstream code is now checking for previous IFrame identifiers and will
drop frames if they are not sent.

The SPS and PPS NALUs are now embedded into a single frame rather than being sent
as separate frames as was previously done. This is consistent with the real
H.264 plugin, and fixes a problem with intermittent failures due to occasionally
bad timestamps.

Differential Revision: https://phabricator.services.mozilla.com/D7447

--HG--
extra : rebase_source : 34ce1e8e5d11a346b2ccb8e8121d5526c02c9911
2018-07-16 11:50:40 -04:00
..
mp4_demuxer
Cargo.toml
dash_dashinit.mp4
GMPTestMonitor.h
hello.rs
id3v2header.mp3
MockMediaDecoderOwner.h
MockMediaResource.cpp
MockMediaResource.h
moz.build Bug 1376873 - Build system fixes; r=ng 2018-01-22 12:47:24 -05:00
negative_duration.mp4
noise_vbr.mp3
noise.mp3
short-zero-in-moov.mp4
short-zero-inband.mov
small-shot-false-positive.mp3
small-shot-partial-xing.mp3
small-shot.mp3
test_case_1224361.vp8.ivf
test_case_1224363.vp8.ivf
test_case_1224369.vp8.ivf
test.webm
TestAudioBuffers.cpp
TestAudioCompactor.cpp
TestAudioDeviceEnumerator.cpp Bug 1482150 - Create a unit test to verify all corner cases of the helper method. r=padenot 2018-11-08 12:33:41 +00:00
TestAudioMixer.cpp
TestAudioPacketizer.cpp
TestAudioSegment.cpp
TestAudioTrackEncoder.cpp Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj 2018-06-01 10:45:27 +02:00
TestBitWriter.cpp Bug 1409664 - P22. Create SPS/PPS extradata to better determine decoder capabilities. r=bryce 2018-07-03 11:45:24 -07:00
TestBlankVideoDataCreator.cpp
TestCDMStorage.cpp Bug 1491889 - Update chromium CDM interface to accommodate async init. r=cpearce 2018-09-25 13:33:09 +00:00
TestDataMutex.cpp
TestGMPCrossOrigin.cpp Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj 2018-06-01 10:45:27 +02:00
TestGMPRemoveAndDelete.cpp Bug 1376873 - Fix fake h.264 encoder; r=pehrsons 2018-07-16 11:50:40 -04:00
TestGMPUtils.cpp
TestIntervalSet.cpp
TestMediaDataDecoder.cpp
TestMediaEventSource.cpp Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj 2018-06-01 10:45:27 +02:00
TestMediaMIMETypes.cpp
TestMP3Demuxer.cpp
TestMP4Demuxer.cpp Bug 1499858 - Re-enable MP4Demuxer.CENCFragVideo gtest for Windows. r=jya 2018-10-18 16:47:55 +00:00
TestOpusParser.cpp Bug 1502488 - Fix opus mapping 2 channels count check. r=padenot 2018-10-29 09:44:18 +00:00
TestRust.cpp
TestTimeUnit.cpp
TestVideoSegment.cpp
TestVideoTrackEncoder.cpp Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj 2018-06-01 10:45:27 +02:00
TestVideoUtils.cpp
TestVPXDecoding.cpp
TestWebMBuffered.cpp
TestWebMWriter.cpp