Browse Source

Include the correct video4linux2 header

Originally committed as revision 5430 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Luca Abeni 19 years ago
parent
commit
f743a06236
2 changed files with 4 additions and 3 deletions
  1. +2
    -1
      configure
  2. +2
    -2
      libavformat/v4l2.c

+ 2
- 1
configure View File

@@ -1273,7 +1273,8 @@ if test "$v4l2" = "yes"; then
# check for video4linux2 --- V4L2_PIX_FMT_YUV420
cat > $TMPC << EOF
#include <sys/time.h>
#include <linux/videodev.h>
#include <asm/types.h>
#include <linux/videodev2.h>
int dummy = V4L2_PIX_FMT_YUV420;
struct v4l2_buffer dummy1;
EOF


+ 2
- 2
libavformat/v4l2.c View File

@@ -30,8 +30,8 @@
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/time.h>
#define _LINUX_TIME_H 1
#include <linux/videodev.h>
#include <asm/types.h>
#include <linux/videodev2.h>
#include <time.h>

static const int desired_video_buffers = 256;


Loading…
Cancel
Save