summaryrefslogtreecommitdiffstats
path: root/ffmpeg35_buildfix.patch
blob: b21f272fc462ef2d3a3476597303ee66769e52b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/ip/ffmpeg.c
+++ b/ip/ffmpeg.c
@@ -252,8 +252,8 @@
 			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) {