diff options
author | Moonchild <mcwerewolf@wolfbeast.com> | 2018-12-29 20:54:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-29 20:54:57 +0100 |
commit | 5920c1dc65a9801a5f7366921a642dcd301803c5 (patch) | |
tree | 192791897f7e2ae85f7a4c6b37e5fafdf42e4819 /dom/media/platforms/ffmpeg/FFmpegLibWrapper.h | |
parent | 83cd9661c27e943e84d6f299a1b3e6323a330d04 (diff) | |
parent | 68acfbb14b48a988e68e056a1d3376cef0f6fba6 (diff) | |
download | UXP-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.h | 4 |
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); |