36e49ac179
Original patch for fixing nvidia vulkan decoding: https://github.com/streetpea/chiaki4deck/issues/239#issuecomment-1929365254 References ---------- [1] https://trac.ffmpeg.org/ticket/10847 [2] https://trac.ffmpeg.org/ticket/10970 [3] https://trac.ffmpeg.org/ticket/10876 [4] https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/eb7d019b326b0c34e07f2369f31e8ba266fa666b
13 lines
447 B
Diff
13 lines
447 B
Diff
--- a/libavutil/vulkan.c
|
|
+++ b/libavutil/vulkan.c
|
|
@@ -607,6 +607,9 @@ int ff_vk_exec_add_dep_frame(FFVulkanContext *s, FFVkExecContext *e, AVFrame *f,
|
|
uint32_t *queue_family_dst;
|
|
VkAccessFlagBits *access_dst;
|
|
|
|
+ if (!f || !f->hw_frames_ctx)
|
|
+ return 1;
|
|
+
|
|
AVHWFramesContext *hwfc = (AVHWFramesContext *)f->hw_frames_ctx->data;
|
|
AVVulkanFramesContext *vkfc = hwfc->hwctx;
|
|
AVVkFrame *vkf = (AVVkFrame *)f->data[0];
|