aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-09-23 18:12:56 -0300
committerJames Almer <jamrial@gmail.com>2017-09-23 18:13:01 -0300
commitd1e7e4fbe2b07f191311cb56e82ef4c18fd0fda4 (patch)
treee79c58957f2088e845f2e953d196ff4265f5cefc
parentff7f859c2595f4daf9397d70af1a4a5d9da0ca59 (diff)
downloadffmpeg-d1e7e4fbe2b07f191311cb56e82ef4c18fd0fda4.tar.gz
avcodec/v4l2_m2m: add missing header inclusions
Should fix checkheaders on systems where v4l2_m2m is enabled. Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/v4l2_buffers.h2
-rw-r--r--libavcodec/v4l2_context.h2
-rw-r--r--libavcodec/v4l2_m2m.h2
3 files changed, 6 insertions, 0 deletions
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"