diff options
author | Mans Rullgard <mans@mansr.com> | 2011-12-15 16:31:07 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-03 18:22:26 +0100 |
commit | 923deca05f85e097e2607f22f195da28a89e97d9 (patch) | |
tree | 798d11473fbc005588cf778464a63f2e871e2a20 | |
parent | d1f74d838ef95b660cf07ad2c8b3ea0af9e523b7 (diff) | |
download | ffmpeg-923deca05f85e097e2607f22f195da28a89e97d9.tar.gz |
v410enc: fix output buffer size check
The encoder clearly needs width * height * 4 bytes.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit dabba0c676389b73c7b324fc999da7076fae149e)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/v410enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/v410enc.c b/libavcodec/v410enc.c index ea66653412..52f87ae940 100644 --- a/libavcodec/v410enc.c +++ b/libavcodec/v410enc.c @@ -50,7 +50,7 @@ static int v410_encode_frame(AVCodecContext *avctx, uint8_t *buf, int i, j; int output_size = 0; - if (buf_size < avctx->width * avctx->height * 3) { + if (buf_size < avctx->width * avctx->height * 4) { av_log(avctx, AV_LOG_ERROR, "Out buffer is too small.\n"); return AVERROR(ENOMEM); } |