diff options
author | Jai Menon <jmenon86@gmail.com> | 2009-10-15 13:55:19 +0000 |
---|---|---|
committer | Jai Menon <jmenon86@gmail.com> | 2009-10-15 13:55:19 +0000 |
commit | 2e3ca1ffd0ff93bc77bbfb08e9d978d9ef3502e2 (patch) | |
tree | f0c757cf44eeaed563e7a202ae6cfb9c37347122 | |
parent | aafd659518356d1ae3624830a36816f154d94d83 (diff) | |
download | ffmpeg-2e3ca1ffd0ff93bc77bbfb08e9d978d9ef3502e2.tar.gz |
Skip padding bytes correctly in ID3 tags.
This fixes a regression introduced in r20170.
Originally committed as revision 20238 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/id3v2.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c index 88472e710e..9bc1d0f1c6 100644 --- a/libavformat/id3v2.c +++ b/libavformat/id3v2.c @@ -213,7 +213,12 @@ 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]) { + if (tag[1]) + av_log(s, AV_LOG_WARNING, "invalid frame id, assuming padding"); + url_fskip(s->pb, len); + break; + } /* Skip to end of tag */ url_fseek(s->pb, next, SEEK_SET); } |