Skip to content
Snippets Groups Projects
Commit 1b6e8b73 authored by Brad's avatar Brad Committed by Diego Biurrun
Browse files

V4L2 support for OpenBSD, patch by Brad, brad comstyle com

Originally committed as revision 15376 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 8b1fd554
No related branches found
No related tags found
No related merge requests found
...@@ -786,6 +786,7 @@ HAVE_LIST=" ...@@ -786,6 +786,7 @@ HAVE_LIST="
sys_resource_h sys_resource_h
sys_select_h sys_select_h
sys_soundcard_h sys_soundcard_h
sys_videoio_h
termios_h termios_h
threads threads
winsock2_h winsock2_h
...@@ -904,7 +905,7 @@ rtp_muxer_deps="network rtp_protocol" ...@@ -904,7 +905,7 @@ rtp_muxer_deps="network rtp_protocol"
rtsp_demuxer_deps="sdp_demuxer" rtsp_demuxer_deps="sdp_demuxer"
sdp_demuxer_deps="rtp_protocol mpegts_demuxer" sdp_demuxer_deps="rtp_protocol mpegts_demuxer"
v4l_demuxer_deps="linux_videodev_h" v4l_demuxer_deps="linux_videodev_h"
v4l2_demuxer_deps="linux_videodev2_h" v4l2_demuxer_deps_any="linux_videodev2_h sys_videoio_h"
vfwcap_demuxer_deps="capCreateCaptureWindow" vfwcap_demuxer_deps="capCreateCaptureWindow"
vfwcap_demuxer_extralibs="-lvfw32" vfwcap_demuxer_extralibs="-lvfw32"
x11_grab_device_demuxer_deps="x11grab XShmCreateImage" x11_grab_device_demuxer_deps="x11grab XShmCreateImage"
...@@ -1817,6 +1818,7 @@ EOF ...@@ -1817,6 +1818,7 @@ EOF
check_header linux/videodev.h check_header linux/videodev.h
check_header linux/videodev2.h check_header linux/videodev2.h
check_header sys/videoio.h
check_func_headers "windows.h vfw.h" capCreateCaptureWindow -lvfw32 check_func_headers "windows.h vfw.h" capCreateCaptureWindow -lvfw32
......
...@@ -35,8 +35,12 @@ ...@@ -35,8 +35,12 @@
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <sys/time.h> #include <sys/time.h>
#ifdef HAVE_SYS_VIDEOIO_H
#include <sys/videoio.h>
#else
#include <asm/types.h> #include <asm/types.h>
#include <linux/videodev2.h> #include <linux/videodev2.h>
#endif
#include <time.h> #include <time.h>
#include <strings.h> #include <strings.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment