{vulkan,radv,anv}/video: fix issue in H264 scaling lists derivation
Originally was trying to copy a pps's scaling list when an sps's was
signaled.
Fixes: 8daa32963 ("vulkan/video: add helper to derive H264 scaling lists")
Signed-off-by: Charlie Turner <cturner@igalia.com>
Reviewed-by: Hyunjun Ko <zzoon@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28352>
This commit is contained in:
committed by
Marge Bot
parent
f36c0683a0
commit
9e3932e990
@@ -736,7 +736,7 @@ vk_video_derive_h264_scaling_list(const StdVideoH264SequenceParameterSet *sps,
|
||||
{
|
||||
if (sps->pScalingLists->scaling_list_present_mask & (1 << i))
|
||||
memcpy(temp.ScalingList4x4[i],
|
||||
pps->pScalingLists->ScalingList4x4[i],
|
||||
sps->pScalingLists->ScalingList4x4[i],
|
||||
STD_VIDEO_H264_SCALING_LIST_4X4_NUM_ELEMENTS);
|
||||
else /* fall-back rule A */
|
||||
{
|
||||
@@ -759,7 +759,7 @@ vk_video_derive_h264_scaling_list(const StdVideoH264SequenceParameterSet *sps,
|
||||
{
|
||||
int i = j + STD_VIDEO_H264_SCALING_LIST_4X4_NUM_LISTS;
|
||||
if (sps->pScalingLists->scaling_list_present_mask & (1 << i))
|
||||
memcpy(temp.ScalingList8x8[j], pps->pScalingLists->ScalingList8x8[j],
|
||||
memcpy(temp.ScalingList8x8[j], sps->pScalingLists->ScalingList8x8[j],
|
||||
STD_VIDEO_H264_SCALING_LIST_8X8_NUM_ELEMENTS);
|
||||
else /* fall-back rule A */
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user