avformat/vivo: fix logic error in checking version in probe
authorPaul B Mahol <onemda@gmail.com>
Sun, 5 Mar 2017 15:34:32 +0000 (16:34 +0100)
committerPaul B Mahol <onemda@gmail.com>
Sun, 5 Mar 2017 15:34:32 +0000 (16:34 +0100)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavformat/vivo.c

index a9effd5..c9e9c37 100644 (file)
@@ -63,7 +63,7 @@ static int vivo_probe(AVProbeData *p)
         return 0;
     buf += 15;
 
-    if (*buf < '0' && *buf > '2')
+    if (*buf < '0' || *buf > '2')
         return 0;
 
     return AVPROBE_SCORE_MAX;