Commit dabba0c6 authored by Mans Rullgard's avatar Mans Rullgard

v410enc: fix output buffer size check

The encoder clearly needs width * height * 4 bytes.
Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
parent 0249144a
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment