[FFmpeg-cvslog] pafdec: fix wrong check for input buffer size.
Michael Niedermayer
git at videolan.org
Wed Aug 15 02:09:08 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Aug 15 01:58:41 2012 +0200| [f952ae1400c5bb76642044229e4663925a4b7ff7] | committer: Michael Niedermayer
pafdec: fix wrong check for input buffer size.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f952ae1400c5bb76642044229e4663925a4b7ff7
---
libavcodec/paf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the ffmpeg-cvslog
mailing list