[FFmpeg-devel] [PATCH 59/60] avformat/apetag: fix variable shadowing

Marvin Scholz epirat07 at gmail.com
Mon Sep 9 03:42:03 EEST 2024


---
 libavformat/apetag.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/apetag.c b/libavformat/apetag.c
index 0989fcb094..84645607de 100644
--- a/libavformat/apetag.c
+++ b/libavformat/apetag.c
@@ -81,7 +81,7 @@ static int ape_tag_read_field(AVFormatContext *s)
         av_dict_set(&st->metadata, key, filename, 0);
 
         if ((id = ff_guess_image2_codec(filename)) != AV_CODEC_ID_NONE) {
-            int ret = ff_add_attached_pic(s, st, s->pb, NULL, size);
+            ret = ff_add_attached_pic(s, st, s->pb, NULL, size);
             if (ret < 0) {
                 av_log(s, AV_LOG_ERROR, "Error reading cover art.\n");
                 return ret;
-- 
2.39.3 (Apple Git-146)




More information about the ffmpeg-devel mailing list