[FFmpeg-devel] [PATCH 2/3] avformat/vivo: improve probing of some files

Paul B Mahol onemda at gmail.com
Wed Apr 4 17:09:36 EEST 2018


Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 libavformat/vivo.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavformat/vivo.c b/libavformat/vivo.c
index c9e9c37f37..6a88a09a01 100644
--- a/libavformat/vivo.c
+++ b/libavformat/vivo.c
@@ -59,9 +59,10 @@ static int vivo_probe(AVProbeData *p)
     if (c & 0x80 || length > 1024 || length < 21)
         return 0;
 
-    if (memcmp(buf, "\r\nVersion:Vivo/", 15))
+    buf += 2;
+    if (memcmp(buf, "Version:Vivo/", 13))
         return 0;
-    buf += 15;
+    buf += 13;
 
     if (*buf < '0' || *buf > '2')
         return 0;
-- 
2.11.0



More information about the ffmpeg-devel mailing list