# HG changeset patch # User michael # Date 1167776532 0 # Node ID 7376514d9d6083bf42e48a8236004c160fb96fc8 # Parent ad71e733bc203996a6e6760e9a79271a497f7e2e missdetected a broken mp3 diff -r ad71e733bc20 -r 7376514d9d60 tiertexseq.c --- a/tiertexseq.c Tue Jan 02 20:35:46 2007 +0000 +++ b/tiertexseq.c Tue Jan 02 22:22:12 2007 +0000 @@ -62,7 +62,7 @@ { 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 @@ 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; }