Mercurial > libavformat.hg
changeset 5727:74142991b333 libavformat
Many mp3s seem to contain padding after id3 tags that is not considered in the
tag size. Skip this to make the format probing quicker.
author | michael |
---|---|
date | Sun, 28 Feb 2010 16:40:17 +0000 |
parents | 04b39763b51b |
children | 16fec79d308d |
files | mp3.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mp3.c Sun Feb 28 11:03:14 2010 +0000 +++ b/mp3.c Sun Feb 28 16:40:17 2010 +0000 @@ -45,10 +45,12 @@ if(ff_id3v2_match(buf0)) { buf0 += ff_id3v2_tag_len(buf0); } + end = p->buf + p->buf_size - sizeof(uint32_t); + while(buf0 < end && !*buf0) + buf0++; max_frames = 0; buf = buf0; - end = p->buf + p->buf_size - sizeof(uint32_t); for(; buf < end; buf= buf2+1) { buf2 = buf;