[FFmpeg-cvslog] avformat/demux: Don't free inexistent ID3v2 metadata

Andreas Rheinhardt git at videolan.org
Fri Sep 17 16:08:35 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Wed Sep  8 22:35:43 2021 +0200| [f5bfc11b5decdf4eef06d25d9699a1d4dcda0b8a] | committer: Andreas Rheinhardt

avformat/demux: Don't free inexistent ID3v2 metadata

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f5bfc11b5decdf4eef06d25d9699a1d4dcda0b8a
---

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

diff --git a/libavformat/demux.c b/libavformat/demux.c
index c490a2dffb..714146039f 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;



More information about the ffmpeg-cvslog mailing list