aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2013-01-17 02:42:17 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-01-17 02:42:17 +0100
commit91e016865cccc192f86d40ea93eb06cf0e7ba4a0 (patch)
tree217f4c01ff8476b62c3617ed8bc40aa06e8db82c
parent16b0b75327088ce26bb52931f0c25359b0c65c09 (diff)
downloadffmpeg-91e016865cccc192f86d40ea93eb06cf0e7ba4a0.tar.gz
Fix detection of struct v4l2_frmsize_discrete.
It was always detected successfully.
-rwxr-xr-xconfigure9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure b/configure
index bbdc6001da..6673a45efa 100755
--- a/configure
+++ b/configure
@@ -3291,7 +3291,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