Commit d7716961 authored by Benoit Fouet's avatar Benoit Fouet Committed by Michael Niedermayer

avformat/apngdec: exit probing when skipping is not possible.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 543fceba
......@@ -87,7 +87,7 @@ static int apng_probe(AVProbeData *p)
/* we don't check IDAT size, as this is the last tag
* we check, and it may be larger than the probe buffer */
if (tag != MKTAG('I', 'D', 'A', 'T') &&
len > bytestream2_get_bytes_left(&gb))
len + 4 > bytestream2_get_bytes_left(&gb))
return 0;
switch (tag) {
......
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