Commit c684cf7c authored by michael's avatar michael

missdetected a broken mp3


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7404 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6b8319ad
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment