Mercurial > libavformat.hg
changeset 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 | 2eee6d1cf5dc |
children | 64e6e0d096b9 |
files | id3v2.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
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); }