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: