context: Increase v4l2 sizeimage to take the buffer numbers into account
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
This commit is contained in:
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user