[FFmpeg-cvslog] lavc/qsv: fix make checkheaders warning

Jun Zhao git at videolan.org
Sun Jun 14 07:31:31 EEST 2020


ffmpeg | branch: master | Jun Zhao <barryjzhao at tencent.com> | Sun May 31 16:12:36 2020 +0800| [ab9ff762c1ead3cab1950a458e845b0b0267f38d] | committer: Jun Zhao

lavc/qsv: fix make checkheaders warning

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>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ab9ff762c1ead3cab1950a458e845b0b0267f38d
---

 libavcodec/qsv_internal.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/qsv_internal.h b/libavcodec/qsv_internal.h
index 6489836a67..6b2fbbe252 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



More information about the ffmpeg-cvslog mailing list