r22111 - trunk/libavformat/mp3.c
Author: michael Date: Sun Feb 28 17:40:17 2010 New Revision: 22111 Log: 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. Modified: trunk/libavformat/mp3.c Modified: trunk/libavformat/mp3.c ============================================================================== --- trunk/libavformat/mp3.c Sun Feb 28 12:18:04 2010 (r22110) +++ trunk/libavformat/mp3.c Sun Feb 28 17:40:17 2010 (r22111) @@ -45,10 +45,12 @@ static int mp3_read_probe(AVProbeData *p 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;
participants (1)
-
subversion@mplayerhq.hu