avformat/segafilm: check 2nd tag
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 6 Nov 2013 11:56:42 +0000 (12:56 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 6 Nov 2013 11:56:42 +0000 (12:56 +0100)
Fixes probetest failure

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/segafilm.c

index a56568c..8a0e8bc 100644 (file)
@@ -69,6 +69,9 @@ static int film_probe(AVProbeData *p)
     if (AV_RB32(&p->buf[0]) != FILM_TAG)
         return 0;
 
+    if (AV_RB32(&p->buf[16]) != FDSC_TAG)
+        return 0;
+
     return AVPROBE_SCORE_MAX;
 }