Skip to content
Snippets Groups Projects
Commit d0966f02 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

missdetected a broken mp3

Originally committed as revision 7404 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 69c262d1
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,7 @@ static int seq_probe(AVProbeData *p) ...@@ -62,7 +62,7 @@ static int seq_probe(AVProbeData *p)
{ {
int i; int i;
if (p->buf_size < 256) if (p->buf_size < 258)
return 0; return 0;
/* there's no real header in a .seq file, the only thing they have in common */ /* 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) ...@@ -71,6 +71,9 @@ static int seq_probe(AVProbeData *p)
if (p->buf[i] != 0) if (p->buf[i] != 0)
return 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 */ /* only one fourth of the score since the previous check is too naive */
return AVPROBE_SCORE_MAX / 4; return AVPROBE_SCORE_MAX / 4;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment