Commit b4305d60 authored by Paul B Mahol's avatar Paul B Mahol

avformat/vivo: improve probing of some files

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 464310c1
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment