File ffmpeg-6-compat.patch of Package cmus

From 565b7726d3791b804ae52000deb25c886bf6c6a3 Mon Sep 17 00:00:00 2001
From: Gavin Troy <gavin@cantlogout.com>
Date: Sun, 16 Apr 2023 22:32:52 +0100
Subject: [PATCH] Remove AV_CODEC_{CAP,FLAG}_TRUNCATED for FFmpeg 6
 compatibility

Closes #1251
---
 ip/ffmpeg.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/ip/ffmpeg.c b/ip/ffmpeg.c
index 09ed3fc4..ea0b26fb 100644
--- a/ip/ffmpeg.c
+++ b/ip/ffmpeg.c
@@ -202,9 +202,6 @@ static int ffmpeg_open(struct input_plugin_data *ip_data)
 			break;
 		}
 
-		if (codec->capabilities & AV_CODEC_CAP_TRUNCATED)
-			cc->flags |= AV_CODEC_FLAG_TRUNCATED;
-
 		if (avcodec_open2(cc, codec, NULL) < 0) {
 			d_print("could not open codec: %d, %s\n", cc->codec_id, avcodec_get_name(cc->codec_id));
 			err = -IP_ERROR_UNSUPPORTED_FILE_TYPE;
openSUSE Build Service is sponsored by