summaryrefslogtreecommitdiffstats
path: root/libavcodec
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 /libavcodec
parentff7f859c2595f4daf9397d70af1a4a5d9da0ca59 (diff)
downloadffmpeg-streaming-d1e7e4fbe2b07f191311cb56e82ef4c18fd0fda4.zip
ffmpeg-streaming-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>
Diffstat (limited to 'libavcodec')
-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 8901a09..5d25a87 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 b6667a0..503cc36 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 13e2285..afa3987 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"
OpenPOWER on IntegriCloud