Skip to content
Commit f100ce3b authored by Benjamin Gaignard's avatar Benjamin Gaignard Committed by Hans Verkuil
Browse files

media: verisilicon: Fix crash when probing encoder



ctx->vpu_dst_fmt is no more initialized before calling hantro_try_fmt()
so assigne it to vpu_fmt led to crash the kernel.
Like for decoder case use 'fmt' as format for encoder and clean up
the code.

Signed-off-by: default avatarBenjamin Gaignard <benjamin.gaignard@collabora.com>
Tested-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Fixes: db6f68b5 ("media: verisilicon: Do not set context src/dst formats in reset functions")
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent e18a7e9a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment