OSDN Git Service

fix probe, patch by Andreas Oman, andreas at olebyn dot nu
authorAndreas Öman <andreas@olebyn.nu>
Sat, 21 Oct 2006 11:08:39 +0000 (11:08 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sat, 21 Oct 2006 11:08:39 +0000 (11:08 +0000)
Originally committed as revision 6751 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/tiertexseq.c

index d252326..4bd1cda 100644 (file)
@@ -68,7 +68,7 @@ static int seq_probe(AVProbeData *p)
     /* there's no real header in a .seq file, the only thing they have in common */
     /* is the first 256 bytes of the file which are always filled with 0 */
     for (i = 0; i < 256; i++)
-        if (p->buf[0] != 0)
+        if (p->buf[i] != 0)
             return 0;
 
     /* only one fourth of the score since the previous check is too naive */