changeset 5310:7e2ae4853d3d libavformat

Fix wrong comparison in r20304
author reynaldo
date Mon, 19 Oct 2009 01:42:05 +0000
parents a011470132ca
children e79d1b0428e3
files mtv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mtv.c	Sun Oct 18 23:56:00 2009 +0000
+++ b/mtv.c	Mon Oct 19 01:42:05 2009 +0000
@@ -62,7 +62,7 @@
         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;