Fix id3v2.2 frame size parsing.
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 25 Jun 2009 19:44:44 +0000 (19:44 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 25 Jun 2009 19:44:44 +0000 (19:44 +0000)
Fixes issue1202.

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

libavformat/id3v2.c

index b230f3d..9a24638 100644 (file)
@@ -159,7 +159,7 @@ void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t flags)
             get_be16(s->pb); /* flags */
         } else {
             tag  = get_be24(s->pb);
-            tlen = get_size(s->pb, 3);
+            tlen = get_be24(s->pb);
         }
         len -= taghdrlen + tlen;