Commit c5f43c88 authored by Michael Niedermayer's avatar Michael Niedermayer

avdevice/v4l2: try to fix build for openbsd

Found-by: carl
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3dca5a5c
...@@ -688,7 +688,11 @@ static int v4l2_set_parameters(AVFormatContext *s1) ...@@ -688,7 +688,11 @@ static int v4l2_set_parameters(AVFormatContext *s1)
standard.index = i; standard.index = i;
if (v4l2_ioctl(s->fd, VIDIOC_ENUMSTD, &standard) < 0) { if (v4l2_ioctl(s->fd, VIDIOC_ENUMSTD, &standard) < 0) {
ret = AVERROR(errno); 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; tpf = &streamparm.parm.capture.timeperframe;
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment