mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avdevice/v4l2: try to fix build for openbsd
Found-by: carl Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3dca5a5c41
commit
c5f43c8888
@ -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…
Reference in New Issue
Block a user