diff --git a/src/amd/vulkan/radv_video.c b/src/amd/vulkan/radv_video.c index e8d939ccad4..8678a783807 100644 --- a/src/amd/vulkan/radv_video.c +++ b/src/amd/vulkan/radv_video.c @@ -953,8 +953,8 @@ static bool rvcn_dec_message_decode(struct radv_cmd_buffer *cmd_buffer, decode->stream_type = vid->stream_type; decode->decode_flags = 0; - decode->width_in_samples = dst_iv->image->vk.extent.width; - decode->height_in_samples = dst_iv->image->vk.extent.height; + decode->width_in_samples = frame_info->dstPictureResource.codedExtent.width; + decode->height_in_samples = frame_info->dstPictureResource.codedExtent.height; decode->bsd_size = frame_info->srcBufferRange; @@ -1348,8 +1348,8 @@ static bool ruvd_dec_message_decode(struct radv_device *device, msg->body.decode.stream_type = vid->stream_type; msg->body.decode.decode_flags = 0x1; - msg->body.decode.width_in_samples = dst_iv->image->vk.extent.width; - msg->body.decode.height_in_samples = dst_iv->image->vk.extent.height; + msg->body.decode.width_in_samples = frame_info->dstPictureResource.codedExtent.width; + msg->body.decode.height_in_samples = frame_info->dstPictureResource.codedExtent.height; msg->body.decode.dpb_size = (vid->dpb_type != DPB_DYNAMIC_TIER_2) ? dpb->size : 0; msg->body.decode.bsd_size = frame_info->srcBufferRange;