From 30154c81c5f3914641c21b0eaf6719957698f8f6 Mon Sep 17 00:00:00 2001 From: Maxime Ripard Date: Fri, 20 Apr 2018 10:19:42 +0200 Subject: [PATCH] context: Increase v4l2 sizeimage to take the buffer numbers into account Signed-off-by: Maxime Ripard --- src/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context.c b/src/context.c index 4218cc8..6c63169 100644 --- a/src/context.c +++ b/src/context.c @@ -115,7 +115,7 @@ VAStatus sunxi_cedrus_CreateContext(VADriverContextP ctx, VAConfigID config_id, fmt.type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; fmt.fmt.pix_mp.width = picture_width; fmt.fmt.pix_mp.height = picture_height; - fmt.fmt.pix_mp.plane_fmt[0].sizeimage = INPUT_BUFFER_MAX_SIZE; + fmt.fmt.pix_mp.plane_fmt[0].sizeimage = INPUT_BUFFER_MAX_SIZE * INPUT_BUFFERS_NB; switch(obj_config->profile) { case VAProfileMPEG2Simple: case VAProfileMPEG2Main: