aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-14 22:02:57 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-15 02:37:36 +0200
commita6bd2ee7594c8625d4fd3b56e2d7c67b23c36580 (patch)
treef181ef8c4ceac47863c06d506097c099ff835f05
parent2b25a5168e562676b299ef0f5a086e046833de4c (diff)
downloadffmpeg-a6bd2ee7594c8625d4fd3b56e2d7c67b23c36580.tar.gz
avutil/hwcontext_vulkan: Remove redundant resetting
vulkan_free_internal() already resets the AVVkFrame.internal pointer. Reviewed-by: Lynne <dev@lynne.ee> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavutil/hwcontext_vulkan.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
index 711a32a0ac..c783080567 100644
--- a/libavutil/hwcontext_vulkan.c
+++ b/libavutil/hwcontext_vulkan.c
@@ -3065,7 +3065,6 @@ static int vulkan_transfer_data_from_cuda(AVHWFramesContext *hwfc,
fail:
CHECK_CU(cu->cuCtxPopCurrent(&dummy));
vulkan_free_internal(dst_f);
- dst_f->internal = NULL;
av_buffer_unref(&dst->buf[0]);
return err;
}
@@ -3642,7 +3641,6 @@ static int vulkan_transfer_data_to_cuda(AVHWFramesContext *hwfc, AVFrame *dst,
fail:
CHECK_CU(cu->cuCtxPopCurrent(&dummy));
vulkan_free_internal(dst_f);
- dst_f->internal = NULL;
av_buffer_unref(&dst->buf[0]);
return err;
}