[FFmpeg-cvslog] id3v2: don't explicitly skip padding

Anton Khirnov git at videolan.org
Wed Mar 23 03:03:42 CET 2011


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Mar 22 10:35:34 2011 +0100| [1885488757dc4c6b2d275e4524ed6dd19e97f9b0] | committer: Justin Ruggles

id3v2: don't explicitly skip padding

It's pointless, since there's a seek to the end of tag later.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1885488757dc4c6b2d275e4524ed6dd19e97f9b0
---

 libavformat/id3v2.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c
index 13272a4..96f3e1c 100644
--- a/libavformat/id3v2.c
+++ b/libavformat/id3v2.c
@@ -279,10 +279,6 @@ static void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t
         avio_seek(s->pb, next, SEEK_SET);
     }
 
-    if (len > 0) {
-        /* Skip padding */
-        avio_skip(s->pb, len);
-    }
     if (version == 4 && flags & 0x10) /* Footer preset, always 10 bytes, skip over it */
         end += 10;
 




More information about the ffmpeg-cvslog mailing list