Mercurial > libavformat.hg
comparison mp3.c @ 4383:0b688ff86d2f libavformat
Make the MP3 probe weakly claim all files with ID3v2 tags to fix regressions on
files with very large tags.
author | alexc |
---|---|
date | Thu, 05 Feb 2009 18:41:06 +0000 |
parents | 39f767e66f49 |
children | 2119994c15ba |
comparison
equal
deleted
inserted
replaced
4382:78e03e2c698d | 4383:0b688ff86d2f |
---|---|
389 first_frames= frames; | 389 first_frames= frames; |
390 } | 390 } |
391 if (first_frames>=3) return AVPROBE_SCORE_MAX/2+1; | 391 if (first_frames>=3) return AVPROBE_SCORE_MAX/2+1; |
392 else if(max_frames>500)return AVPROBE_SCORE_MAX/2; | 392 else if(max_frames>500)return AVPROBE_SCORE_MAX/2; |
393 else if(max_frames>=3) return AVPROBE_SCORE_MAX/4; | 393 else if(max_frames>=3) return AVPROBE_SCORE_MAX/4; |
394 else if(buf0!=p->buf) return AVPROBE_SCORE_MAX/4-1; | |
394 else if(max_frames>=1) return 1; | 395 else if(max_frames>=1) return 1; |
395 else return 0; | 396 else return 0; |
396 } | 397 } |
397 | 398 |
398 /** | 399 /** |