Commit graph

316 commits

Author SHA1 Message Date
trav90
ecc55bc615 Add missing includes to FFmpegLibWrapper 2019-02-16 00:16:54 +08:00
trav90
d7a7fe75a0 Fix typo (build bustage) 2019-02-16 00:16:52 +08:00
trav90
76f1e6edca Update aom to slightly newer commit ID 2019-02-16 00:16:50 +08:00
trav90
1c8af26369 Add av1 to MediaSource.isTypeSupported
When av1 video playback is enabled, declare it as supported in the webm container in MediaSource.IsTypeSupported.

Also support special mime types of the form video/webm; codecs=vp9.experimental.<git-commit-id> so test sites can verify playback support of particular encodings while the av1 bitstream is under development.
2019-02-16 00:16:48 +08:00
trav90
dc0970c312 Remove aom_codec_stream_info_t sz field references
Upstream has removed the requirement to set this when initializing the stream_info struct.
2019-02-16 00:16:46 +08:00
trav90
b3aa26975c Make AOMDecoder actually build 2019-02-16 00:16:44 +08:00
trav90
c0086bdae8 Add missing includes to WebMDemuxer 2019-02-16 00:16:38 +08:00
trav90
76faa8e90f Recognize AV1 in WebMDemuxer
Call AOMDecoder to handle AV1 video tracks from the WebM container. The new decoder is very similar to VPXDecoder so we can use parallel calls. This codec is still build-time conditional.
2019-02-16 00:16:36 +08:00
trav90
349a05d4ad Add AOMDecoder to AgnosticDecoderModule 2019-02-16 00:16:35 +08:00
trav90
19743f8e4d Add AOMDecoder
Port the VPXDecoder interface to libaom which uses the same api with the names changed.
2019-02-16 00:16:33 +08:00
trav90
23c04adbe8 [webm] Don't reject seeks with EOS
The MediaDecoderStateMachine treat seek's EOS as fatal errors, so instead we always resolve the seek promise, and let the next GetSample return EOS.
2019-02-16 00:15:46 +08:00
trav90
64b9480493 [webm] Treat demuxing errors differently than EOS
Otherwise the WebM demuxer makes no difference between a genuine EOS and encountering an error.
2019-02-16 00:15:44 +08:00
trav90
dfcff1dfbc Call VPXDecoder libvpx wrappers for WebM
Use the new helper functions instead of calling libvpx directly. This simplifies adding other codecs in the future.
2019-02-16 00:15:42 +08:00
trav90
3b0820badb Implement keyframe and framesize VPXDecoder helpers
Encapsulate code from WebMDemuxer to query keyframe and frame resolution inside VPXDecoder, so we have a clean wrapper for all the libvpx functions we use.
2019-02-16 00:15:40 +08:00
trav90
85ee1da71a Add Span support to MediaRawData 2019-02-16 00:15:39 +08:00
trav90
0c88f36323 [vpx] Store VPXDecoder codec as an enum
Use the enum we already have here instead of converting to an int when we pass it around, giving us better type checking.
2019-02-16 00:15:37 +08:00
trav90
e7d7e0d2bf [webm] Store LastSeenFrame dimensions as an nsIntSize
This simplifies the comparison and update logic.
2019-02-16 00:15:36 +08:00
trav90
c582c801da [ffmpeg] Always allocate memory to pass extradata
Despite wording of the documentation to the contrary, we can't provide a static pointer to an immutable object.
2019-02-16 00:15:04 +08:00
wolfbeast
606356d1f9 Remove telemetry reporting functions from CubebUtils
Tag #21.
2019-02-16 00:15:01 +08:00
trav90
87be2b9973 Update test files for libnestegg update 2019-02-16 00:14:46 +08:00
wolfbeast
eff8a32348 Fix clang build bustage.
Follow-up to 9830cd079d8306abc223461190553af64b6fd0ca
2019-02-16 00:13:40 +08:00
wolfbeast
44998d1f5b Bug 1472925 - Keep a strong reference to MediaStreamGraph from GraphDriver. 2019-02-16 00:13:21 +08:00
trav90
fb3d16e2db RTCCertificate.cpp: output truncated before the last format character
Fixes compiler warnings when building with GCC 7+
2019-02-16 00:12:49 +08:00
wolfbeast
8c8145e620 Remove all C++ Telemetry Accumulation calls.
This creates a number of stubs and leaves some surrounding code that may be irrelevant (eg. recorded time stamps, status variables).
Stub resolution/removal should be a follow-up to this.
2019-02-16 00:12:32 +08:00
trav90
a20d2c6462 [EME] Add support for sbgp and sgpd boxes occuring in the sampletable 2019-02-16 00:10:03 +08:00
trav90
1ce79cb51e [EME] Add support for sbgp and sgpd boxes in the traf box 2019-02-16 00:10:01 +08:00
Byron Campen [:bwc]
03766e63da Bug 1464079 - Bring ICE connection state change callback up to spec. r=jib, a=RyanVM 2019-02-16 00:06:55 +08:00
Byron Campen [:bwc]
e659309611 Bug 1464079 - Bring ICE connection state change callback up to spec. r=jib, a=RyanVM
WebRTC
2019-02-16 00:06:53 +08:00
wolfbeast
0bdecfc6ea Media: harden TrackID handling. 2019-02-16 00:02:03 +08:00
trav90
72d9e76fca Revoke MediaDataDecoder callback after RemoteVideoDecoder has been shut down 2019-02-15 23:58:46 +08:00
trav90
46621ae3e3 Null check the right pointer in RecvReadback 2019-02-15 23:58:45 +08:00
trav90
edf010898f Perform null check earlier in OggCodecState.cpp 2019-02-15 23:58:43 +08:00
trav90
1bc04e8910 [MSE] Correct ADTS frame size calculation
This should be bitwise OR rather than logical OR, which just returns 1.
2019-02-15 23:58:42 +08:00
wolfbeast
ad8dedfc91 Remove stubbed IPC CrashReporter(Parent/Child) 2019-02-15 23:58:28 +08:00
wolfbeast
a3f981092e Remove GMP, Plugin and IPC crash reporter hooks.
Stubs will be removed in follow-up

Tag #20.
2019-02-15 23:58:26 +08:00
wolfbeast
22a077d0ed Remove gfxCrashReporterUtils leftover.
Tag #20.
2019-02-15 23:58:24 +08:00
wolfbeast
121456f05a Remove gfxCrashReporterUtils.
Tag #20.
2019-02-15 23:58:22 +08:00
trav90
886642abc1 [MSE] Add a missing comma in validBoxes 2019-02-15 23:58:21 +08:00
wolfbeast
74df182488 Remove other gonk widget conditionals and unused files.
Tag #288.
2019-02-15 23:57:15 +08:00
wolfbeast
2531de02eb Remove MOZ_WIDGET_GONK [2/2]
Tag #288
2019-02-15 23:57:10 +08:00
wolfbeast
719ac1bc38 Remove MOZ_B2G leftovers and some dead B2G-only components. 2019-02-15 23:57:05 +08:00
wolfbeast
66ea8f0645 Remove Gonk build directories 2019-02-15 23:56:58 +08:00
Paul Adenot
8e5fec311a Bug 1426129 - Hold CamerasChild via promoting "this" to a RefPtr. r=pehrsons, a=RyanVM 2019-02-15 23:56:53 +08:00
wolfbeast
c8462db202 Remove sandbox ductwork conditional code. 2019-02-15 23:55:41 +08:00
wolfbeast
aa9ae963f6 Remove GMP sandbox code. 2019-02-15 23:55:38 +08:00
trav90
d87cc84005 Add support for libavcodec 58/FFmpeg 4.0 2019-02-15 23:55:35 +08:00
trav90
e44a157583 Import FFmpeg 4.0 header files 2019-02-15 23:55:34 +08:00
Bryce Van Dyk
f2565dab54 Bug 1453127 - Do not use iterators in MediaStreamTrack when removing listeners. r=pehrsons a=lizzard
--HG--
extra : source : 6b3aaee40f7507e240da08d6e073cff3c53971f4
extra : intermediate-source : 59e50af7afe19f827dd687ea097d5ba551ab0b1d
2019-02-15 23:53:21 +08:00
trav90
13e11af6b3 Bump VP9 benchmark version ID 2019-02-15 23:52:03 +08:00
trav90
aeea23c315 [FFmpeg] Work around a bug with corrupted data
According to FFmpeg documentation, the out parameter is "set to size of parsed buffer or zero if not yet finished." however this is only the case if no error occurred; otherwise it is left untouched. We want the invalid content to generate a decoding error, so we set size to inputSize to ensure decoding failed later.
2019-02-15 23:51:53 +08:00