From 515e0794f832e6557c0315e0f397be90fd6395af Mon Sep 17 00:00:00 2001 From: trav90 Date: Thu, 27 Dec 2018 11:11:35 -0600 Subject: [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. --- dom/media/platforms/ffmpeg/FFmpegLibWrapper.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dom/media/platforms/ffmpeg/FFmpegLibWrapper.h') 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); -- cgit v1.2.3