Fix id3v2.3/4 tag size parsing.
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 25 Jun 2009 19:26:39 +0000 (19:26 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 25 Jun 2009 19:26:39 +0000 (19:26 +0000)
Fixes issue1106

Originally committed as revision 19275 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/id3v2.c

index 9bf9f1a..b230f3d 100644 (file)
@@ -155,7 +155,7 @@ void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t flags)
     while (len >= taghdrlen) {
         if (isv34) {
             tag  = get_be32(s->pb);
-            tlen = get_size(s->pb, 4);
+            tlen = get_be32(s->pb);
             get_be16(s->pb); /* flags */
         } else {
             tag  = get_be24(s->pb);