|
@@ -1480,6 +1480,7 @@ static int __vpe_try_fmt(struct vpe_ctx *ctx, struct v4l2_format *f,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ memset(pix->reserved, 0, sizeof(pix->reserved));
|
|
|
for (i = 0; i < pix->num_planes; i++) {
|
|
|
plane_fmt = &pix->plane_fmt[i];
|
|
|
depth = fmt->vpdma_fmt[i]->depth;
|
|
@@ -1491,6 +1492,8 @@ static int __vpe_try_fmt(struct vpe_ctx *ctx, struct v4l2_format *f,
|
|
|
|
|
|
plane_fmt->sizeimage =
|
|
|
(pix->height * pix->width * depth) >> 3;
|
|
|
+
|
|
|
+ memset(plane_fmt->reserved, 0, sizeof(plane_fmt->reserved));
|
|
|
}
|
|
|
|
|
|
return 0;
|