From a8e1cbaf18bc291f3ceb230582e2d84076e3a1fd Mon Sep 17 00:00:00 2001 From: "Reynaldo H. Verdejo Pinochet" Date: Thu, 5 Nov 2009 01:59:07 +0000 Subject: [PATCH] Decrement probe score at unsuported bpp Originally committed as revision 20454 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mtv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/mtv.c b/libavformat/mtv.c index 13e8ac2e8d..0c35b8121e 100644 --- a/libavformat/mtv.c +++ b/libavformat/mtv.c @@ -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; }