Ensure decoded CAPTURE buffer resolution is larger or equal to the coded
OUTPUT buffer resolution.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Reviewed-by: Sebastian Fricke <sebastian.fricke@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
                pix_mp->pixelformat = coded_desc->decoded_fmts[0];
 
        /* Always apply the frmsize constraint of the coded end. */
+       pix_mp->width = max(pix_mp->width, ctx->coded_fmt.fmt.pix_mp.width);
+       pix_mp->height = max(pix_mp->height, ctx->coded_fmt.fmt.pix_mp.height);
        v4l2_apply_frmsize_constraints(&pix_mp->width,
                                       &pix_mp->height,
                                       &coded_desc->frmsize);