[FFmpeg-cvslog] avformat/vivo: fix logic error in checking version in probe

Paul B Mahol git at videolan.org
Sun Mar 5 17:40:32 EET 2017


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Mar  5 16:34:32 2017 +0100| [035e932d7c039030bd8142bf2f99cbbd1d3e92cf] | committer: Paul B Mahol

avformat/vivo: fix logic error in checking version in probe

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=035e932d7c039030bd8142bf2f99cbbd1d3e92cf
---

 libavformat/vivo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/vivo.c b/libavformat/vivo.c
index a9effd5..c9e9c37 100644
--- a/libavformat/vivo.c
+++ b/libavformat/vivo.c
@@ -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;



More information about the ffmpeg-cvslog mailing list