summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSom Qin <som.qin@starfivetech.com>2023-01-12 04:16:41 +0300
committerSom Qin <som.qin@starfivetech.com>2023-08-03 11:18:45 +0300
commit6afe5843ba1c018e46d75e03c6054efa18b617ce (patch)
treebcd4424ce781e77ac4809dd9d80657a601396d3a
parent771214c1cd90db484ee5f9e18be07c93354ff160 (diff)
downloadlinux-6afe5843ba1c018e46d75e03c6054efa18b617ce.tar.xz
Media:wave5: set default format for display_fmt
Signed-off-by: Som Qin <som.qin@starfivetech.com>
-rw-r--r--drivers/media/platform/chips-media/wave5/wave5-vpu-dec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/chips-media/wave5/wave5-vpu-dec.c b/drivers/media/platform/chips-media/wave5/wave5-vpu-dec.c
index f722924413b5..bba48cbc8080 100644
--- a/drivers/media/platform/chips-media/wave5/wave5-vpu-dec.c
+++ b/drivers/media/platform/chips-media/wave5/wave5-vpu-dec.c
@@ -1403,6 +1403,7 @@ static int wave5_vpu_open_dec(struct file *filp)
v4l2_ctrl_handler_setup(&inst->v4l2_ctrl_hdl);
wave5_set_default_format(&inst->src_fmt, &inst->dst_fmt);
+ memcpy((void *)&inst->display_fmt, (void *)&inst->dst_fmt, sizeof(struct v4l2_pix_format_mplane));
inst->colorspace = V4L2_COLORSPACE_REC709;
inst->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
inst->hsv_enc = 0;