mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2025-02-17 11:28:05 +00:00
pafdec: fix wrong check for input buffer size.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
456f0c6477
commit
f952ae1400
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user