diff options
author | Benoit Fouet <benoit.fouet@free.fr> | 2014-12-02 11:24:21 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-02 16:02:01 +0100 |
commit | d7716961a856e0d6fcd23d82a5cb87c3a8439e4b (patch) | |
tree | 36999bdb7684f4606a500f589c8bcb1fb535e22b /libavformat/apngdec.c | |
parent | 543fceba9ca9bb27afb0b81265578ae7b03a9dac (diff) | |
download | ffmpeg-d7716961a856e0d6fcd23d82a5cb87c3a8439e4b.tar.gz |
avformat/apngdec: exit probing when skipping is not possible.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/apngdec.c')
-rw-r--r-- | libavformat/apngdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/apngdec.c b/libavformat/apngdec.c index 189480e41a..d97b015a79 100644 --- a/libavformat/apngdec.c +++ b/libavformat/apngdec.c @@ -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) { |