mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
missdetected a broken mp3
Originally committed as revision 7404 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
69c262d156
commit
d0966f026c
@ -62,7 +62,7 @@ static int seq_probe(AVProbeData *p)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (p->buf_size < 256)
|
||||
if (p->buf_size < 258)
|
||||
return 0;
|
||||
|
||||
/* there's no real header in a .seq file, the only thing they have in common */
|
||||
@ -71,6 +71,9 @@ static int seq_probe(AVProbeData *p)
|
||||
if (p->buf[i] != 0)
|
||||
return 0;
|
||||
|
||||
if(p->buf[256]==0 && p->buf[257]==0)
|
||||
return 0;
|
||||
|
||||
/* only one fourth of the score since the previous check is too naive */
|
||||
return AVPROBE_SCORE_MAX / 4;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user