comparison mp3.c @ 2796:5002462418f7 libavformat

remove arbitrary 4096 limit for probing
author michael
date Mon, 03 Dec 2007 04:50:01 +0000
parents f417ee08f8c1
children 428c1678b21f
comparison
equal deleted inserted replaced
2795:f417ee08f8c1 2796:5002462418f7
401 if(id3v2_match(p->buf)) 401 if(id3v2_match(p->buf))
402 return AVPROBE_SCORE_MAX/2+1; // this must be less than mpeg-ps because some retards put id3v2 tags before mpeg-ps files 402 return AVPROBE_SCORE_MAX/2+1; // this must be less than mpeg-ps because some retards put id3v2 tags before mpeg-ps files
403 403
404 max_frames = 0; 404 max_frames = 0;
405 buf = p->buf; 405 buf = p->buf;
406 end = buf + FFMIN(4096, p->buf_size - sizeof(uint32_t)); 406 end = buf + p->buf_size - sizeof(uint32_t);
407 407
408 for(; buf < end; buf++) { 408 for(; buf < end; buf++) {
409 buf2 = buf; 409 buf2 = buf;
410 410
411 for(frames = 0; buf2 < end; frames++) { 411 for(frames = 0; buf2 < end; frames++) {