File ffmpeg-c99.patch of Package ffmpeg-4
xxxxxxxxxx
1
From: Filip Kastl <fkastl@opensuse.org>
2
Date: Fri, 26 Jul 2024 14:39:42 +0000
3
4
I based the package patch on this bug report (there's a patch in
5
the comments)
6
https://bugs.gentoo.org/936433
7
8
and on these patches
9
https://ffmpeg.org/pipermail/ffmpeg-devel/2023-December/318685.html
10
http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=5860a966d2fffbbda1af0014f0a4d37a21c4f2ca
11
12
Index: ffmpeg-4.4.4/libavutil/hwcontext_vaapi.c
13
===================================================================
14
--- ffmpeg-4.4.4.orig/libavutil/hwcontext_vaapi.c
15
+++ ffmpeg-4.4.4/libavutil/hwcontext_vaapi.c
16
17
uint32_t va_fourcc;
18
int err, i, j, k;
19
20
- unsigned long buffer_handle;
21
+ uintptr_t buffer_handle;
22
VASurfaceAttribExternalBuffers buffer_desc;
23
VASurfaceAttrib attrs[2] = {
24
{
25
Index: ffmpeg-4.4.4/libavutil/hwcontext_vulkan.c
26
===================================================================
27
--- ffmpeg-4.4.4.orig/libavutil/hwcontext_vulkan.c
28
+++ ffmpeg-4.4.4/libavutil/hwcontext_vulkan.c
29
30
31
av_freep(&cmd->queues);
32
av_freep(&cmd->bufs);
33
- cmd->pool = NULL;
34
+ cmd->pool = VK_NULL_HANDLE;
35
}
36
37
static VkCommandBuffer get_buf_exec_ctx(AVHWFramesContext *hwfc, VulkanExecCtx *cmd)
38