summaryrefslogtreecommitdiffstats
path: root/dom/media/platforms/ffmpeg/FFmpegLibWrapper.h
diff options
context:
space:
mode:
authortrav90 <travawine@protonmail.ch>2018-12-27 11:11:35 -0600
committertrav90 <travawine@palemoon.org>2018-12-28 17:51:55 -0600
commit515e0794f832e6557c0315e0f397be90fd6395af (patch)
treec7c6d5320d779cbcca83b6c76bae3d5d7c401fb7 /dom/media/platforms/ffmpeg/FFmpegLibWrapper.h
parent83cd9661c27e943e84d6f299a1b3e6323a330d04 (diff)
downloadUXP-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/FFmpegLibWrapper.h')
-rw-r--r--dom/media/platforms/ffmpeg/FFmpegLibWrapper.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/dom/media/platforms/ffmpeg/FFmpegLibWrapper.h b/dom/media/platforms/ffmpeg/FFmpegLibWrapper.h
index c6c43a4ae..b968edd32 100644
--- a/dom/media/platforms/ffmpeg/FFmpegLibWrapper.h
+++ b/dom/media/platforms/ffmpeg/FFmpegLibWrapper.h
@@ -71,6 +71,10 @@ struct FFmpegLibWrapper
// libavcodec v54 only
void (*avcodec_free_frame)(AVFrame** frame);
+ // libavcodec v58 and later only
+ int (*avcodec_send_packet)(AVCodecContext* avctx, const AVPacket* avpkt);
+ int (*avcodec_receive_frame)(AVCodecContext* avctx, AVFrame* frame);
+
// libavutil
void (*av_log_set_level)(int level);
void* (*av_malloc)(size_t size);