summaryrefslogtreecommitdiffstats
path: root/dom/media/platforms/ffmpeg/FFmpegLibWrapper.h
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@wolfbeast.com>2018-12-29 20:54:57 +0100
committerGitHub <noreply@github.com>2018-12-29 20:54:57 +0100
commit5920c1dc65a9801a5f7366921a642dcd301803c5 (patch)
tree192791897f7e2ae85f7a4c6b37e5fafdf42e4819 /dom/media/platforms/ffmpeg/FFmpegLibWrapper.h
parent83cd9661c27e943e84d6f299a1b3e6323a330d04 (diff)
parent68acfbb14b48a988e68e056a1d3376cef0f6fba6 (diff)
downloadUXP-5920c1dc65a9801a5f7366921a642dcd301803c5.tar
UXP-5920c1dc65a9801a5f7366921a642dcd301803c5.tar.gz
UXP-5920c1dc65a9801a5f7366921a642dcd301803c5.tar.lz
UXP-5920c1dc65a9801a5f7366921a642dcd301803c5.tar.xz
UXP-5920c1dc65a9801a5f7366921a642dcd301803c5.zip
Merge pull request #921 from trav90/media-work
Use new decode API with recent FFmpeg version
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);