comparison mp3.c @ 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 6d530eb42996
children 536e5527c1e0
comparison
equal deleted inserted replaced
5726:04b39763b51b 5727:74142991b333
43 43
44 buf0 = p->buf; 44 buf0 = p->buf;
45 if(ff_id3v2_match(buf0)) { 45 if(ff_id3v2_match(buf0)) {
46 buf0 += ff_id3v2_tag_len(buf0); 46 buf0 += ff_id3v2_tag_len(buf0);
47 } 47 }
48 end = p->buf + p->buf_size - sizeof(uint32_t);
49 while(buf0 < end && !*buf0)
50 buf0++;
48 51
49 max_frames = 0; 52 max_frames = 0;
50 buf = buf0; 53 buf = buf0;
51 end = p->buf + p->buf_size - sizeof(uint32_t);
52 54
53 for(; buf < end; buf= buf2+1) { 55 for(; buf < end; buf= buf2+1) {
54 buf2 = buf; 56 buf2 = buf;
55 57
56 for(frames = 0; buf2 < end; frames++) { 58 for(frames = 0; buf2 < end; frames++) {