OSDN Git Service

Parenthesize correctly in TMV probe
authorDaniel Verkamp <daniel@drv.nu>
Tue, 20 Oct 2009 19:07:08 +0000 (19:07 +0000)
committerDaniel Verkamp <daniel@drv.nu>
Tue, 20 Oct 2009 19:07:08 +0000 (19:07 +0000)
Originally committed as revision 20335 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/tmv.c

index ab6a14f..aab42a6 100644 (file)
@@ -55,7 +55,8 @@ static int tmv_probe(AVProbeData *p)
                !p->buf[8] && // compression method
                 p->buf[9] && // char cols
                 p->buf[10])  // char rows
-        return AVPROBE_SCORE_MAX / (p->buf[9] == 40 && p->buf[10] == 25)? 1 : 4;
+        return AVPROBE_SCORE_MAX /
+            ((p->buf[9] == 40 && p->buf[10] == 25) ? 1 : 4);
     return 0;
 }