Fix FTBFS with FFmpeg 4.0
authorrien333 <rien334@gmail.com>
Thu, 17 May 2018 10:34:35 +0000 (11:34 +0100)
committerJames Cowgill <jcowgill@debian.org>
Thu, 17 May 2018 10:34:35 +0000 (11:34 +0100)
Origin: backport, https://github.com/cmus/cmus/pull/793
Bug-Debian: https://bugs.debian.org/888384

Bug-Debian: https://bugs.debian.org/888384
Gbp-Pq: Name 12-ffmpeg-4.0.patch

ffmpeg.c

index 62c3903c4443c745f6d7ff2c8f092b9b3f8c1938..69af06710f454d3c828a7cd11d94f8eac7028c4c 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -252,8 +252,8 @@ static int ffmpeg_open(struct input_plugin_data *ip_data)
                        break;
                }
 
-               if (codec->capabilities & CODEC_CAP_TRUNCATED)
-                       cc->flags |= CODEC_FLAG_TRUNCATED;
+               if (codec->capabilities & AV_CODEC_CAP_TRUNCATED)
+                       cc->flags |= AV_CODEC_FLAG_TRUNCATED;
 
 #if (LIBAVCODEC_VERSION_INT < ((53<<16)+(8<<8)+0))
                if (avcodec_open(cc, codec) < 0) {