Browse Source

avdevice/v4l2: try to fix build for openbsd

Found-by: carl
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.4
Michael Niedermayer 10 years ago
parent
commit
c5f43c8888
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      libavdevice/v4l2.c

+ 5
- 1
libavdevice/v4l2.c View File

@@ -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;
}


Loading…
Cancel
Save