diff mbox series

[FFmpeg-devel,v2,2/3] hwcontext_vulkan: fix make checkheaders fail

Message ID 1590913114-11434-2-git-send-email-mypopydev@gmail.com
State Accepted
Commit 0c79b731647f834dae86a5cf6fb4dbe3538b2266
Headers show
Series [FFmpeg-devel,v2,1/3] checkasm: sw_rgb: Fix mixed declaration and code
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Jun Zhao May 31, 2020, 8:18 a.m. UTC
From: Jun Zhao <barryjzhao@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@tencent.com>
---
 libavutil/hwcontext_vulkan.h | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/libavutil/hwcontext_vulkan.h b/libavutil/hwcontext_vulkan.h
index aba9833..5cbeb8e 100644
--- a/libavutil/hwcontext_vulkan.h
+++ b/libavutil/hwcontext_vulkan.h
@@ -21,6 +21,9 @@ 
 
 #include <vulkan/vulkan.h>
 
+#include "pixfmt.h"
+#include "frame.h"
+
 /**
  * @file
  * API-specific header for AV_HWDEVICE_TYPE_VULKAN.