From cbd8a722bb2d6b873d4ddaab414e5e782bc838f3 Mon Sep 17 00:00:00 2001 From: "Reynaldo H. Verdejo Pinochet" Date: Mon, 19 Oct 2009 01:42:05 +0000 Subject: Fix wrong comparison in r20304 Originally committed as revision 20305 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mtv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/mtv.c') diff --git a/libavformat/mtv.c b/libavformat/mtv.c index 0547430f74..13e8ac2e8d 100644 --- a/libavformat/mtv.c +++ b/libavformat/mtv.c @@ -62,7 +62,7 @@ static int mtv_probe(AVProbeData *p) return 0; /* If width or height are 0 then imagesize header field should not */ - if(AV_RL16(&p->buf[52]) && AV_RL16(&p->buf[54])) + if(!AV_RL16(&p->buf[52]) || !AV_RL16(&p->buf[54])) { if(!!AV_RL16(&p->buf[56])) return AVPROBE_SCORE_MAX/2; -- cgit v1.2.3