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/FFmpegLibWrapper.cpp | |
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/FFmpegLibWrapper.cpp')
-rw-r--r-- | dom/media/platforms/ffmpeg/FFmpegLibWrapper.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dom/media/platforms/ffmpeg/FFmpegLibWrapper.cpp b/dom/media/platforms/ffmpeg/FFmpegLibWrapper.cpp index e1c326818..426e9f74b 100644 --- a/dom/media/platforms/ffmpeg/FFmpegLibWrapper.cpp +++ b/dom/media/platforms/ffmpeg/FFmpegLibWrapper.cpp @@ -145,6 +145,8 @@ FFmpegLibWrapper::Link() AV_FUNC(avcodec_alloc_frame, (AV_FUNC_53 | AV_FUNC_54)) AV_FUNC(avcodec_get_frame_defaults, (AV_FUNC_53 | AV_FUNC_54)) AV_FUNC(avcodec_free_frame, AV_FUNC_54) + AV_FUNC(avcodec_send_packet, AV_FUNC_58) + AV_FUNC(avcodec_receive_frame, AV_FUNC_58) AV_FUNC(av_log_set_level, AV_FUNC_AVUTIL_ALL) AV_FUNC(av_malloc, AV_FUNC_AVUTIL_ALL) AV_FUNC(av_freep, AV_FUNC_AVUTIL_ALL) |