[FFmpeg-devel] [PATCH v2 3/3] lavc/qsv: fix make checkheaders warning

Jun Zhao mypopydev at gmail.com
Sun May 31 11:18:34 EEST 2020


From: Jun Zhao <barryjzhao at tencent.com>

make checkheaders will get warning as follow:

In file included from libavcodec/qsv_internal.h.c:1:
./libavcodec/qsv_internal.h:24:5: warning: "CONFIG_VAAPI" is not defined, evaluates to 0 [-Wundef]
   24 | #if CONFIG_VAAPI
      |     ^~~~~~~~~~~~

include "config.h" to fix the warning

Signed-off-by: Jun Zhao <barryjzhao at tencent.com>
---
 libavcodec/qsv_internal.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/qsv_internal.h b/libavcodec/qsv_internal.h
index 6489836..6b2fbbe 100644
--- a/libavcodec/qsv_internal.h
+++ b/libavcodec/qsv_internal.h
@@ -21,6 +21,8 @@
 #ifndef AVCODEC_QSV_INTERNAL_H
 #define AVCODEC_QSV_INTERNAL_H
 
+#include "config.h"
+
 #if CONFIG_VAAPI
 #define AVCODEC_QSV_LINUX_SESSION_HANDLE
 #endif //CONFIG_VAAPI
-- 
2.7.4



More information about the ffmpeg-devel mailing list