diff options
author | trav90 <travawine@protonmail.ch> | 2018-12-27 11:11:35 -0600 |
---|---|---|
committer | trav90 <travawine@palemoon.org> | 2018-12-28 17:51:55 -0600 |
commit | 515e0794f832e6557c0315e0f397be90fd6395af (patch) | |
tree | c7c6d5320d779cbcca83b6c76bae3d5d7c401fb7 /dom/media/platforms/ffmpeg/FFmpegVideoDecoder.h | |
parent | 83cd9661c27e943e84d6f299a1b3e6323a330d04 (diff) | |
download | UXP-515e0794f832e6557c0315e0f397be90fd6395af.tar UXP-515e0794f832e6557c0315e0f397be90fd6395af.tar.gz UXP-515e0794f832e6557c0315e0f397be90fd6395af.tar.lz UXP-515e0794f832e6557c0315e0f397be90fd6395af.tar.xz UXP-515e0794f832e6557c0315e0f397be90fd6395af.zip |
[FFmpeg] Use new decode API with recent FFmpeg version.
In libavcodec 58 and later, the old avcodec_decode_video2 is broken and only return the first visible frame found after a VP9 super-frame.
Diffstat (limited to 'dom/media/platforms/ffmpeg/FFmpegVideoDecoder.h')
-rw-r--r-- | dom/media/platforms/ffmpeg/FFmpegVideoDecoder.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dom/media/platforms/ffmpeg/FFmpegVideoDecoder.h b/dom/media/platforms/ffmpeg/FFmpegVideoDecoder.h index 786df0da1..49a55e8a6 100644 --- a/dom/media/platforms/ffmpeg/FFmpegVideoDecoder.h +++ b/dom/media/platforms/ffmpeg/FFmpegVideoDecoder.h @@ -49,6 +49,7 @@ private: MediaResult DoDecode(MediaRawData* aSample) override; MediaResult DoDecode(MediaRawData* aSample, bool* aGotFrame); MediaResult DoDecode(MediaRawData* aSample, uint8_t* aData, int aSize, bool* aGotFrame); + MediaResult CreateImage(int64_t aOffset, int64_t aPts, int64_t aDuration); void ProcessDrain() override; void ProcessFlush() override; void OutputDelayedFrames(); |