Commit f952ae14 authored by Michael Niedermayer's avatar Michael Niedermayer

pafdec: fix wrong check for input buffer size.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 456f0c64
......@@ -278,7 +278,7 @@ static int paf_vid_decode(AVCodecContext *avctx, void *data,
if (index + count > 256)
return AVERROR_INVALIDDATA;
if (bytestream2_get_bytes_left(&c->gb) < 3 * AVPALETTE_SIZE)
if (bytestream2_get_bytes_left(&c->gb) < 3*count)
return AVERROR_INVALIDDATA;
out += index;
......
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