Skip to content
Snippets Groups Projects
Commit c5f43c88 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avdevice/v4l2: try to fix build for openbsd


Found-by: carl
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 3dca5a5c
No related branches found
No related tags found
No related merge requests found
...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment