summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-18 13:53:55 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-08-18 14:03:03 +0200
commitc5f43c8888400f5fab6f7d2ad27e961e8d2616a5 (patch)
tree3cfc5903a666fd6d0800cbe4576184920ac75aad /libavdevice
parent3dca5a5c41f67a2e149582f3d46a09647b183e71 (diff)
avdevice/v4l2: try to fix build for openbsd
Found-by: carl Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/v4l2.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index e1a4d23343..9f9f9442b0 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -688,7 +688,11 @@ static int v4l2_set_parameters(AVFormatContext *s1)
standard.index = i;
if (v4l2_ioctl(s->fd, VIDIOC_ENUMSTD, &standard) < 0) {
ret = AVERROR(errno);
- if (ret == AVERROR(EINVAL) || ret == AVERROR(ENODATA)) {
+ if (ret == AVERROR(EINVAL)
+#ifdef ENODATA
+ || ret == AVERROR(ENODATA)
+#endif
+ ) {
tpf = &streamparm.parm.capture.timeperframe;
break;
}