summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.travis.yml1
-rw-r--r--video/decode/vd_lavc.c2
-rw-r--r--wscript2
3 files changed, 4 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 3b29fb3b5b..73c2534d28 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,6 +6,7 @@ os:
env:
matrix:
- LIBAV=ffmpeg-git
+ - LIBAV=libav-git
global:
# Coverity token
- secure: "H21mSRlMhk4BKS0xHZvCFGJxteCP0hRVUxTuNfM2Z9HBsyutuLEYMtViLO86VtM+Tqla3xXPzUdS4ozLwI72Ax/5ZUDXACROj73yW6QhFB5D6rLut12+FjqC7M33Qv2hl0xwgNBmR5dsm1ToP37+Wn+ecJQNvN8fkTXF+HVzOEw="
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index e0c9cb80d0..6d92702cb8 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -738,8 +738,10 @@ static int init_generic_hwaccel(struct dec_video *vd, enum AVPixelFormat hw_fmt)
AVHWFramesContext *new_fctx = (void *)new_frames_ctx->data;
+#if LIBAVCODEC_VERSION_MICRO >= 100
if (ctx->hwdec.pix_fmt == AV_PIX_FMT_VIDEOTOOLBOX)
new_fctx->sw_format = imgfmt2pixfmt(vd->opts->videotoolbox_format);
+#endif
if (vd->opts->hwdec_image_format)
new_fctx->sw_format = imgfmt2pixfmt(vd->opts->hwdec_image_format);
diff --git a/wscript b/wscript
index 4a1959b2a6..b4caba9531 100644
--- a/wscript
+++ b/wscript
@@ -421,7 +421,7 @@ ffmpeg_pkg_config_checks = [
]
libav_pkg_config_checks = [
'libavutil', '>= 56.6.0',
- 'libavcodec', '>= 58.5.0',
+ 'libavcodec', '>= 58.8.0',
'libavformat', '>= 58.1.0',
'libswscale', '>= 5.0.0',
'libavfilter', '>= 7.0.0',