aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2023-06-20 03:22:27 +0200
committerLynne <dev@lynne.ee>2023-06-22 18:17:53 +0200
commit237c400727c9bfb7b0c50221bcd17864b2b8ade3 (patch)
tree90fc98ad8fa525fa839d78e88b371f778e4b83df
parentd9af84426bfea003e06c4f389f4d1666c3515340 (diff)
downloadffmpeg-237c400727c9bfb7b0c50221bcd17864b2b8ade3.tar.gz
vulkan_decode: remove unused fields
-rw-r--r--libavcodec/vulkan_decode.c2
-rw-r--r--libavcodec/vulkan_decode.h6
2 files changed, 0 insertions, 8 deletions
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;
/**