提交 e90b05f6 编写于 作者: R Ricardo Ribalda 提交者: Zheng Zengkai

media: hantro: Fix reset_raw_fmt initialization

stable inclusion
from stable-5.10.13
commit 4b5a88b3f45cd0f7a7025c53a4b448f4bab88c00
bugzilla: 47995

--------------------------------

commit e081863a upstream.

raw_fmt->height in never initialized. But width in initialized twice.

Fixes: 88d06362 ("media: hantro: Refactor for V4L2 API spec compliancy")
Signed-off-by: NRicardo Ribalda <ribalda@chromium.org>
Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
Cc: <stable@vger.kernel.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
上级 077d247f
...@@ -367,7 +367,7 @@ hantro_reset_raw_fmt(struct hantro_ctx *ctx) ...@@ -367,7 +367,7 @@ hantro_reset_raw_fmt(struct hantro_ctx *ctx)
hantro_reset_fmt(raw_fmt, raw_vpu_fmt); hantro_reset_fmt(raw_fmt, raw_vpu_fmt);
raw_fmt->width = encoded_fmt->width; raw_fmt->width = encoded_fmt->width;
raw_fmt->width = encoded_fmt->width; raw_fmt->height = encoded_fmt->height;
if (ctx->is_encoder) if (ctx->is_encoder)
hantro_set_fmt_out(ctx, raw_fmt); hantro_set_fmt_out(ctx, raw_fmt);
else else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部