From 65862f57ad2f7f49d715f334a9d892e0b20d42f1 Mon Sep 17 00:00:00 2001 From: Paul Arzelier Date: Sat, 28 Jan 2017 17:25:27 +0100 Subject: avformat: Ignore ID3v2 tags if other tags are present e.g. vorbis Reviewed-by: wm4 Signed-off-by: Michael Niedermayer --- libavformat/mp3dec.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavformat/mp3dec.c') diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c index 099ca57d24..b45a066686 100644 --- a/libavformat/mp3dec.c +++ b/libavformat/mp3dec.c @@ -349,6 +349,9 @@ static int mp3_read_header(AVFormatContext *s) int ret; int i; + s->metadata = s->internal->id3v2_meta; + s->internal->id3v2_meta = NULL; + st = avformat_new_stream(s, NULL); if (!st) return AVERROR(ENOMEM); -- cgit v1.2.3