[FFmpeg-devel] [PATCH 12/14] avformat/demux: Don't free inexistent ID3v2 metadata

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Thu Sep 9 18:57:45 EEST 2021


Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 libavformat/demux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/demux.c b/libavformat/demux.c
index 267ebce07f..7bcd23ed62 100644
--- a/libavformat/demux.c
+++ b/libavformat/demux.c
@@ -319,8 +319,8 @@ int avformat_open_input(AVFormatContext **ps, const char *filename,
                 goto close;
         } else
             av_log(s, AV_LOG_DEBUG, "demuxer does not support additional id3 data, skipping\n");
+        ff_id3v2_free_extra_meta(&id3v2_extra_meta);
     }
-    ff_id3v2_free_extra_meta(&id3v2_extra_meta);
 
     if ((ret = avformat_queue_attached_pictures(s)) < 0)
         goto close;
-- 
2.30.2



More information about the ffmpeg-devel mailing list