Mercurial > libavformat.hg
changeset 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 | 78e03e2c698d |
children | bfb10be2b631 |
files | mp3.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mp3.c Thu Feb 05 18:32:42 2009 +0000 +++ b/mp3.c Thu Feb 05 18:41:06 2009 +0000 @@ -391,6 +391,7 @@ if (first_frames>=3) return AVPROBE_SCORE_MAX/2+1; else if(max_frames>500)return AVPROBE_SCORE_MAX/2; else if(max_frames>=3) return AVPROBE_SCORE_MAX/4; + else if(buf0!=p->buf) return AVPROBE_SCORE_MAX/4-1; else if(max_frames>=1) return 1; else return 0; }