Mercurial > libavformat.hg
diff id3v2.c @ 5286:3ce92654e943 libavformat
Skip padding bytes correctly in ID3 tags.
This fixes a regression introduced in r20170.
author | jai_menon |
---|---|
date | Thu, 15 Oct 2009 13:55:19 +0000 |
parents | 79be5a6fd62f |
children | 97b8e17cfbd4 |
line wrap: on
line diff
--- a/id3v2.c Thu Oct 15 09:49:06 2009 +0000 +++ b/id3v2.c Thu Oct 15 13:55:19 2009 +0000 @@ -213,7 +213,12 @@ 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); }