mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-21 01:51:18 +00:00
media: hantro: Fix reset_raw_fmt initialization
commite081863ab4
upstream. raw_fmt->height in never initialized. But width in initialized twice. Fixes:88d06362d1
("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ae584fbbb6
commit
4b5a88b3f4
1 changed files with 1 additions and 1 deletions
|
@ -367,7 +367,7 @@ hantro_reset_raw_fmt(struct hantro_ctx *ctx)
|
|||
|
||||
hantro_reset_fmt(raw_fmt, raw_vpu_fmt);
|
||||
raw_fmt->width = encoded_fmt->width;
|
||||
raw_fmt->width = encoded_fmt->width;
|
||||
raw_fmt->height = encoded_fmt->height;
|
||||
if (ctx->is_encoder)
|
||||
hantro_set_fmt_out(ctx, raw_fmt);
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue