[FFmpeg-cvslog] avcodec/v4l2_m2m: add missing header inclusions

James Almer git at videolan.org
Sun Sep 24 00:14:13 EEST 2017


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Sep 23 18:12:56 2017 -0300| [d1e7e4fbe2b07f191311cb56e82ef4c18fd0fda4] | committer: James Almer

avcodec/v4l2_m2m: add missing header inclusions

Should fix checkheaders on systems where v4l2_m2m is enabled.

Signed-off-by: James Almer <jamrial at gmail.com>

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

 libavcodec/v4l2_buffers.h | 2 ++
 libavcodec/v4l2_context.h | 2 ++
 libavcodec/v4l2_m2m.h     | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/libavcodec/v4l2_buffers.h b/libavcodec/v4l2_buffers.h
index 8901a0952f..5d25a87750 100644
--- a/libavcodec/v4l2_buffers.h
+++ b/libavcodec/v4l2_buffers.h
@@ -24,6 +24,8 @@
 #ifndef AVCODEC_V4L2_BUFFERS_H
 #define AVCODEC_V4L2_BUFFERS_H
 
+#include <linux/videodev2.h>
+
 enum V4L2Buffer_status {
     V4L2BUF_AVAILABLE,
     V4L2BUF_IN_DRIVER,
diff --git a/libavcodec/v4l2_context.h b/libavcodec/v4l2_context.h
index b6667a04e3..503cc36dc4 100644
--- a/libavcodec/v4l2_context.h
+++ b/libavcodec/v4l2_context.h
@@ -25,6 +25,8 @@
 #define AVCODEC_V4L2_CONTEXT_H
 
 #include <stdatomic.h>
+#include <linux/videodev2.h>
+
 #include "libavcodec/avcodec.h"
 #include "libavutil/pixfmt.h"
 #include "libavutil/frame.h"
diff --git a/libavcodec/v4l2_m2m.h b/libavcodec/v4l2_m2m.h
index 13e2285389..afa3987c46 100644
--- a/libavcodec/v4l2_m2m.h
+++ b/libavcodec/v4l2_m2m.h
@@ -27,6 +27,8 @@
 #include <semaphore.h>
 #include <unistd.h>
 #include <dirent.h>
+#include <linux/videodev2.h>
+
 #include "libavcodec/avcodec.h"
 #include "v4l2_context.h"
 



More information about the ffmpeg-cvslog mailing list