media: rkvdec: h264: Fix dpb_valid implementation
stable inclusion from stable-v5.10.121 commit b4805a77d5258f07c4aa4088e96e49eb5b9b5124 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I5L6CQ Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b4805a77d5258f07c4aa4088e96e49eb5b9b5124 -------------------------------- [ Upstream commit 7ab889f0 ] The ref builder only provided references that are marked as valid in the dpb. Thus the current implementation of dpb_valid would always set the flag to 1. This is not representing missing frames (this is called 'non-existing' pictures in the spec). In some context, these non-existing pictures still need to occupy a slot in the reference list according to the spec. Fixes: cd33c830 ("media: rkvdec: Add the rkvdec driver") Signed-off-by: NNicolas Dufresne <nicolas.dufresne@collabora.com> Reviewed-by: NSebastian Fricke <sebastian.fricke@collabora.com> Reviewed-by: NEzequiel Garcia <ezequiel@vanguardiasur.com.ar> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
Showing
想要评论请 注册 或 登录