Fix nvidia vulkan decoding. Fix vulkan filters output format.
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
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
--- 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];
|
||||
Reference in New Issue
Block a user