[FFmpeg-cvslog] r25926 - trunk/libavformat/id3v2.c

elenril subversion
Fri Dec 10 16:48:56 CET 2010


Author: elenril
Date: Fri Dec 10 16:48:56 2010
New Revision: 25926

Log:
id3v2: skip data length indicator

Modified:
   trunk/libavformat/id3v2.c

Modified: trunk/libavformat/id3v2.c
==============================================================================
--- trunk/libavformat/id3v2.c	Fri Dec 10 16:41:23 2010	(r25925)
+++ trunk/libavformat/id3v2.c	Fri Dec 10 16:48:56 2010	(r25926)
@@ -224,6 +224,11 @@ void ff_id3v2_parse(AVFormatContext *s, 
 
         next = url_ftell(s->pb) + tlen;
 
+        if (tflags & ID3v2_FLAG_DATALEN) {
+            get_be32(s->pb);
+            tlen -= 4;
+        }
+
         if (tflags & (ID3v2_FLAG_ENCRYPTION | ID3v2_FLAG_COMPRESSION)) {
             av_log(s, AV_LOG_WARNING, "Skipping encrypted/compressed ID3v2 frame %s.\n", tag);
             url_fskip(s->pb, tlen);



More information about the ffmpeg-cvslog mailing list