diff mbox series

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

Message ID PR3PR03MB6665218CF0DA2EDBE28161FC8FD59@PR3PR03MB6665.eurprd03.prod.outlook.com
State Accepted
Commit f5bfc11b5decdf4eef06d25d9699a1d4dcda0b8a
Headers show
Series [FFmpeg-devel,01/14] Revert "avfilter/af_silenceremove: fix processing of periods > 1" | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/configureppc warning Failed to apply patch

Commit Message

Andreas Rheinhardt Sept. 9, 2021, 3:57 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavformat/demux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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;