mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-25 04:19:05 +00:00
avformat/apngdec: exit probing when skipping is not possible.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
543fceba9c
commit
d7716961a8
@ -87,7 +87,7 @@ static int apng_probe(AVProbeData *p)
|
|||||||
/* we don't check IDAT size, as this is the last tag
|
/* we don't check IDAT size, as this is the last tag
|
||||||
* we check, and it may be larger than the probe buffer */
|
* we check, and it may be larger than the probe buffer */
|
||||||
if (tag != MKTAG('I', 'D', 'A', 'T') &&
|
if (tag != MKTAG('I', 'D', 'A', 'T') &&
|
||||||
len > bytestream2_get_bytes_left(&gb))
|
len + 4 > bytestream2_get_bytes_left(&gb))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
switch (tag) {
|
switch (tag) {
|
||||||
|
Loading…
Reference in New Issue
Block a user