[FFmpeg-devel] [PATCH] avformat/id3v2: only use syncsafe for extended header size.
Benoit Fouet
benoit.fouet at free.fr
Mon Oct 13 15:53:32 CEST 2014
Fixes ticket #4003
---
libavformat/id3v2.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c
index 5469e0a..d3dc647 100644
--- a/libavformat/id3v2.c
+++ b/libavformat/id3v2.c
@@ -732,10 +732,7 @@ static void id3v2_parse(AVIOContext *pb, AVDictionary **metadata,
if (avio_read(pb, tag, 4) < 4)
break;
tag[4] = 0;
- if (version == 3) {
- tlen = avio_rb32(pb);
- } else
- tlen = get_size(pb, 4);
+ tlen = avio_rb32(pb);
tflags = avio_rb16(pb);
tunsync = tflags & ID3v2_FLAG_UNSYNCH;
} else {
--
2.1.0.127.g0c72b98
More information about the ffmpeg-devel
mailing list