Skip to content

Commit e081863

Browse files
ribaldamchehab
authored andcommitted
media: hantro: Fix reset_raw_fmt initialization
raw_fmt->height in never initialized. But width in initialized twice. Fixes: 88d0636 ("media: hantro: Refactor for V4L2 API spec compliancy") Signed-off-by: Ricardo Ribalda <ribalda@chromium.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Cc: <stable@vger.kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
1 parent eaf18a4 commit e081863

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/staging/media/hantro/hantro_v4l2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ hantro_reset_raw_fmt(struct hantro_ctx *ctx)
367367

368368
hantro_reset_fmt(raw_fmt, raw_vpu_fmt);
369369
raw_fmt->width = encoded_fmt->width;
370-
raw_fmt->width = encoded_fmt->width;
370+
raw_fmt->height = encoded_fmt->height;
371371
if (ctx->is_encoder)
372372
hantro_set_fmt_out(ctx, raw_fmt);
373373
else

0 commit comments

Comments
 (0)