avformat/vivo: improve probing of some files
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
464310c160
commit
b4305d60f6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user