[FFmpeg-cvslog] Fix detection of struct v4l2_frmsize_discrete.
Carl Eugen Hoyos
git at videolan.org
Thu Jan 17 02:45:40 CET 2013
ffmpeg | branch: release/0.10 | Carl Eugen Hoyos <cehoyos at ag.or.at> | Thu Jan 17 02:42:17 2013 +0100| [74b04e6a359fd7319f052650c40981dd4f8f312f] | committer: Carl Eugen Hoyos
Fix detection of struct v4l2_frmsize_discrete.
It was always detected successfully.
(cherry picked from commit 91e016865cccc192f86d40ea93eb06cf0e7ba4a0)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=74b04e6a359fd7319f052650c40981dd4f8f312f
---
configure | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 2a8d0a7..7298059 100755
--- a/configure
+++ b/configure
@@ -3203,7 +3203,14 @@ makeinfo --version > /dev/null 2>&1 && enable makeinfo || disable makeinfo
check_header linux/fb.h
check_header linux/videodev.h
check_header linux/videodev2.h
-check_struct linux/videodev2.h "struct v4l2_frmivalenum" discrete
+check_cc <<EOF && enable_safe struct_v4l2_frmivalenum_discrete
+#include <linux/videodev2.h>
+int main(void) {
+struct v4l2_frmsizeenum vfse;
+vfse.discrete.width = 0;
+return 0;
+}
+EOF
check_header sys/videoio.h
More information about the ffmpeg-cvslog
mailing list