The encoder clearly needs width * height * 4 bytes.
Signed-off-by: Mans Rullgard <[email protected]>
---
libavcodec/v410enc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/v410enc.c b/libavcodec/v410enc.c
index 051bb43..88387ee 100644
--- a/libavcodec/v410enc.c
+++ b/libavcodec/v410enc.c
@@ -53,7 +53,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);
}
--
1.7.8
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel