diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-08-18 15:53:55 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-08-18 16:03:03 +0400 |
commit | c5f43c8888400f5fab6f7d2ad27e961e8d2616a5 (patch) | |
tree | 3cfc5903a666fd6d0800cbe4576184920ac75aad /libavdevice/v4l2.c | |
parent | 3dca5a5c41f67a2e149582f3d46a09647b183e71 (diff) |
avdevice/v4l2: try to fix build for openbsd
Found-by: carl
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice/v4l2.c')
-rw-r--r-- | libavdevice/v4l2.c | 6 |
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; } |