summaryrefslogtreecommitdiff
path: root/libavcodec/paf.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-08-15 01:58:41 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-08-15 02:04:38 +0200
commitf952ae1400c5bb76642044229e4663925a4b7ff7 (patch)
treebca39ccc598b41fb69fd364c754bbf5854764efe /libavcodec/paf.c
parent456f0c6477925611f1b45a434795f8bad4fb2a66 (diff)
pafdec: fix wrong check for input buffer size.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/paf.c')
-rw-r--r--libavcodec/paf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/paf.c b/libavcodec/paf.c
index 388e2a082c..722ab26888 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;