[FFmpeg-devel] [PATCH 2/2] hwcontext_vulkan: fix make checkheaders fail
Jun Zhao
mypopydev at gmail.com
Sat May 30 16:16:36 EEST 2020
From: Jun Zhao <barryjzhao at tencent.com>
make checkheaders will get error as follow:
CC libavutil/hwcontext_vulkan.h.o
In file included from libavutil/hwcontext_vulkan.h.c:1:
./libavutil/hwcontext_vulkan.h:130:23: error: ‘AV_NUM_DATA_POINTERS’ undeclared here (not in a function)
130 | void *alloc_pnext[AV_NUM_DATA_POINTERS];
| ^~~~~~~~~~~~~~~~~~~~
./libavutil/hwcontext_vulkan.h:199:43: warning: ‘enum AVPixelFormat’ declared inside parameter list will not be visible outside of this definition or declaration
Signed-off-by: Jun Zhao <barryjzhao at tencent.com>
---
libavutil/hwcontext_vulkan.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavutil/hwcontext_vulkan.h b/libavutil/hwcontext_vulkan.h
index aba9833..0f6a51f 100644
--- a/libavutil/hwcontext_vulkan.h
+++ b/libavutil/hwcontext_vulkan.h
@@ -21,6 +21,8 @@
#include <vulkan/vulkan.h>
+#include "libavutil/frame.h"
+
/**
* @file
* API-specific header for AV_HWDEVICE_TYPE_VULKAN.
--
2.7.4
More information about the ffmpeg-devel
mailing list