summaryrefslogtreecommitdiff
path: root/libavformat/vivo.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-04-04 11:47:42 +0200
committerPaul B Mahol <onemda@gmail.com>2020-02-20 14:41:26 +0100
commitb4305d60f68ade2601dbf238ae5a88d74d388f98 (patch)
tree092431c13eded1f8331d463a17e0ce5a99972987 /libavformat/vivo.c
parent464310c16062efe234cb016ff41fa312546dfc5e (diff)
downloadffmpeg-b4305d60f68ade2601dbf238ae5a88d74d388f98.tar.gz
avformat/vivo: improve probing of some files
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/vivo.c')
-rw-r--r--libavformat/vivo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/vivo.c b/libavformat/vivo.c
index 7f30a3f031..2defda992b 100644
--- a/libavformat/vivo.c
+++ b/libavformat/vivo.c
@@ -59,9 +59,10 @@ static int vivo_probe(const 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;