diff options
author | Mans Rullgard <mans@mansr.com> | 2011-12-15 20:31:07 +0400 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-12-15 21:47:10 +0400 |
commit | dabba0c676389b73c7b324fc999da7076fae149e (patch) | |
tree | e64638960b3ffb45251ef7c5b0e4daf39a3ee7e6 /libavcodec | |
parent | 0249144a1c5ca6054e4b7374b5dd24bcbe435239 (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')
-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 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); } |