diff --git a/libavcodec/vulkan_decode.c b/libavcodec/vulkan_decode.c index afcdcd8021..d4395e32e4 100644 --- a/libavcodec/vulkan_decode.c +++ b/libavcodec/vulkan_decode.c @@ -136,7 +136,6 @@ int ff_vk_decode_prepare_frame(FFVulkanDecodeContext *dec, AVFrame *pic, int err; FFVulkanDecodeShared *ctx = (FFVulkanDecodeShared *)dec->shared_ref->data; - vkpic->nb_slices = 0; vkpic->slices_size = 0; /* If the decoder made a blank frame to make up for a missing ref, or the @@ -247,7 +246,6 @@ int ff_vk_decode_add_slice(AVCodecContext *avctx, FFVulkanDecodePicture *vp, memcpy(slices + vp->slices_size + startcode_len, data, size); *nb_slices = nb + 1; - vp->nb_slices++; vp->slices_size += startcode_len + size; return 0; diff --git a/libavcodec/vulkan_decode.h b/libavcodec/vulkan_decode.h index 3ac103f6b4..bb53100429 100644 --- a/libavcodec/vulkan_decode.h +++ b/libavcodec/vulkan_decode.h @@ -80,10 +80,6 @@ typedef struct FFVulkanDecodePicture { VkSemaphore sem; uint64_t sem_value; - /* State */ - int update_params; - AVBufferRef *session_params; - /* Current picture */ VkVideoPictureResourceInfoKHR ref; VkVideoReferenceSlotInfoKHR ref_slot; @@ -93,7 +89,6 @@ typedef struct FFVulkanDecodePicture { VkVideoReferenceSlotInfoKHR ref_slots[36]; /* Main decoding struct */ - AVBufferRef *params_buf; VkVideoDecodeInfoKHR decode_info; /* Slice data */ @@ -101,7 +96,6 @@ typedef struct FFVulkanDecodePicture { size_t slices_size; uint32_t *slice_off; unsigned int slice_off_max; - uint32_t nb_slices; } FFVulkanDecodePicture; /**