Commit f743a062 authored by Luca Abeni's avatar Luca Abeni

Include the correct video4linux2 header

Originally committed as revision 5430 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 22a0e907
...@@ -1273,7 +1273,8 @@ if test "$v4l2" = "yes"; then ...@@ -1273,7 +1273,8 @@ if test "$v4l2" = "yes"; then
# check for video4linux2 --- V4L2_PIX_FMT_YUV420 # check for video4linux2 --- V4L2_PIX_FMT_YUV420
cat > $TMPC << EOF cat > $TMPC << EOF
#include <sys/time.h> #include <sys/time.h>
#include <linux/videodev.h> #include <asm/types.h>
#include <linux/videodev2.h>
int dummy = V4L2_PIX_FMT_YUV420; int dummy = V4L2_PIX_FMT_YUV420;
struct v4l2_buffer dummy1; struct v4l2_buffer dummy1;
EOF EOF
......
...@@ -30,8 +30,8 @@ ...@@ -30,8 +30,8 @@
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <sys/time.h> #include <sys/time.h>
#define _LINUX_TIME_H 1 #include <asm/types.h>
#include <linux/videodev.h> #include <linux/videodev2.h>
#include <time.h> #include <time.h>
static const int desired_video_buffers = 256; static const int desired_video_buffers = 256;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment