avformat/msf: Also check the codec tag in probing
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 29 Feb 2016 12:53:13 +0000 (13:53 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 29 Feb 2016 18:25:01 +0000 (19:25 +0100)
Fixes probing failure

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/msf.c

index 73a5a01..97a6dc6 100644 (file)
@@ -34,6 +34,9 @@ static int msf_probe(AVProbeData *p)
     if (AV_RB32(p->buf+16) <= 0)
         return 0;
 
+    if (AV_RB32(p->buf+4) > 16)
+        return AVPROBE_SCORE_MAX / 5; //unsupported / unknown codec
+
     return AVPROBE_SCORE_MAX / 3 * 2;
 }