diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-08-15 01:58:41 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-08-15 02:04:38 +0200 |
commit | f952ae1400c5bb76642044229e4663925a4b7ff7 (patch) | |
tree | bca39ccc598b41fb69fd364c754bbf5854764efe | |
parent | 456f0c6477925611f1b45a434795f8bad4fb2a66 (diff) | |
download | ffmpeg-streaming-f952ae1400c5bb76642044229e4663925a4b7ff7.zip ffmpeg-streaming-f952ae1400c5bb76642044229e4663925a4b7ff7.tar.gz |
pafdec: fix wrong check for input buffer size.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/paf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/paf.c b/libavcodec/paf.c index 388e2a0..722ab26 100644 --- a/libavcodec/paf.c +++ b/libavcodec/paf.c @@ -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; |