mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
media: vicodec: Do not zero reserved fields
Core code already clears reserved fields of struct
v4l2_pix_format_mplane, check commit 4e1e0eb0e0 ("media: v4l2-ioctl: Zero
v4l2_plane_pix_format reserved fields").
Signed-off-by: Ricardo Ribalda <[email protected]>
Reviewed-by: Kieran Bingham <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
b7d2c99a69
commit
ed2fb2f574
@@ -811,9 +811,6 @@ static int vidioc_g_fmt(struct vicodec_ctx *ctx, struct v4l2_format *f)
|
||||
pix_mp->xfer_func = ctx->state.xfer_func;
|
||||
pix_mp->ycbcr_enc = ctx->state.ycbcr_enc;
|
||||
pix_mp->quantization = ctx->state.quantization;
|
||||
memset(pix_mp->reserved, 0, sizeof(pix_mp->reserved));
|
||||
memset(pix_mp->plane_fmt[0].reserved, 0,
|
||||
sizeof(pix_mp->plane_fmt[0].reserved));
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
@@ -886,8 +883,6 @@ static int vidioc_try_fmt(struct vicodec_ctx *ctx, struct v4l2_format *f)
|
||||
info->sizeimage_mult / info->sizeimage_div;
|
||||
if (pix_mp->pixelformat == V4L2_PIX_FMT_FWHT)
|
||||
plane->sizeimage += sizeof(struct fwht_cframe_hdr);
|
||||
memset(pix_mp->reserved, 0, sizeof(pix_mp->reserved));
|
||||
memset(plane->reserved, 0, sizeof(plane->reserved));
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user