]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: iris: use fallback size when S_FMT is called without width/height
authorVal Packett <val@packett.cool>
Thu, 25 Dec 2025 23:09:10 +0000 (20:09 -0300)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 20 Jan 2026 13:00:12 +0000 (14:00 +0100)
commit4980721cb97d6c47700ab61a048ac8819cfeec87
tree4e7d6e7df17f2240b4bfd14483a70195b08b5741
parent71fe80364a6584f404556ac9a6a4aca4ab80fb5b
media: iris: use fallback size when S_FMT is called without width/height

According to 4.5.1.5 of the M2M stateful decoder UAPI documentation,
providing the width and the height to S_FMT is "required only if it
cannot be parsed from the stream", otherwise they can be left as 0
and the S_FMT implementation is expected to return a valid placeholder
resolution that would let REQBUFS succeed.

iris was missing the fallback, so clients like rpi-ffmpeg wouldn't work.
Fix by adding an explicit fallback to defaults.

Fixes: b530b95de22c ("media: iris: implement s_fmt, g_fmt and try_fmt ioctls")
Link: https://github.com/jc-kynesim/rpi-ffmpeg/issues/103
Reviewed-by: Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>
Signed-off-by: Val Packett <val@packett.cool>
Cc: stable@vger.kernel.org
Signed-off-by: Bryan O'Donoghue <bod@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/qcom/iris/iris_vdec.c