summaryrefslogtreecommitdiff
path: root/libavcodec/v410enc.c
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-12-15 16:31:07 +0000
committerMans Rullgard <mans@mansr.com>2011-12-15 17:47:10 +0000
commitdabba0c676389b73c7b324fc999da7076fae149e (patch)
treee64638960b3ffb45251ef7c5b0e4daf39a3ee7e6 /libavcodec/v410enc.c
parent0249144a1c5ca6054e4b7374b5dd24bcbe435239 (diff)
v410enc: fix output buffer size check
The encoder clearly needs width * height * 4 bytes. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/v410enc.c')
-rw-r--r--libavcodec/v410enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/v410enc.c b/libavcodec/v410enc.c
index d15fb7ab97..95b36c138e 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);
}