[PATCH 1/1] Skip padding at the end of id3 tags.
Jai Menon
jai
Sun Oct 11 12:21:34 CEST 2009
---
libavformat/id3v2.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c
index 88472e7..b3364f5 100644
--- a/libavformat/id3v2.c
+++ b/libavformat/id3v2.c
@@ -213,7 +213,10 @@ void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t flags)
if (tag[0] == 'T')
read_ttag(s, tlen, tag);
-
+ else if (!tag[0]) {
+ url_fskip(s->pb, len);
+ break;
+ }
/* Skip to end of tag */
url_fseek(s->pb, next, SEEK_SET);
}
--
1.6.3.3
--3V7upXqbjpZ4EhLz--
More information about the ffmpeg-devel
mailing list