Commit 35b04ac6 authored by michael's avatar michael

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.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22111 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c0e97b5c
...@@ -45,10 +45,12 @@ static int mp3_read_probe(AVProbeData *p) ...@@ -45,10 +45,12 @@ static int mp3_read_probe(AVProbeData *p)
if(ff_id3v2_match(buf0)) { if(ff_id3v2_match(buf0)) {
buf0 += ff_id3v2_tag_len(buf0); buf0 += ff_id3v2_tag_len(buf0);
} }
end = p->buf + p->buf_size - sizeof(uint32_t);
while(buf0 < end && !*buf0)
buf0++;
max_frames = 0; max_frames = 0;
buf = buf0; buf = buf0;
end = p->buf + p->buf_size - sizeof(uint32_t);
for(; buf < end; buf= buf2+1) { for(; buf < end; buf= buf2+1) {
buf2 = buf; buf2 = buf;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment