diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-01-20 09:06:58 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-01-20 13:39:19 +0000 |
commit | 75aded8328e35c9391e25a1c857eb6e3b801a8d8 (patch) | |
tree | ed02075713d23f783c6e174fd5fc9f0f2d14f8b6 /libavformat/id3v2.c | |
parent | f7fcd6a2549b58a69c02622503676a8b142e4c43 (diff) | |
download | ffmpeg-75aded8328e35c9391e25a1c857eb6e3b801a8d8.tar.gz |
id3v2: don't overwrite existing tags
Apparently some broken taggers prepend a new ID3v2 tag leaving the
existing one intact. Our parser currently reads all tags and overwrites
existing values with supposedly outdated ones.
fixes issue2419
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavformat/id3v2.c')
-rw-r--r-- | libavformat/id3v2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c index 4da7ec66d1..95ec0b05cb 100644 --- a/libavformat/id3v2.c +++ b/libavformat/id3v2.c @@ -132,7 +132,7 @@ static void read_ttag(AVFormatContext *s, ByteIOContext *pb, int taglen, const c val = dst; if (val) - av_metadata_set2(&s->metadata, key, val, 0); + av_metadata_set2(&s->metadata, key, val, AV_METADATA_DONT_OVERWRITE); } static void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t flags) |