OSDN Git Service

Decrement probe score at unsuported bpp
authorReynaldo H. Verdejo Pinochet <reynaldo@opendot.cl>
Thu, 5 Nov 2009 01:59:07 +0000 (01:59 +0000)
committerReynaldo H. Verdejo Pinochet <reynaldo@opendot.cl>
Thu, 5 Nov 2009 01:59:07 +0000 (01:59 +0000)
Originally committed as revision 20454 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mtv.c

index 13e8ac2..0c35b81 100644 (file)
@@ -70,6 +70,9 @@ static int mtv_probe(AVProbeData *p)
             return 0;
     }
 
+    if(p->buf[51] != 16)
+        return AVPROBE_SCORE_MAX/4; // But we are going to assume 16bbp anyway ..
+
     return AVPROBE_SCORE_MAX;
 }