avdevice/v4l2: try to fix build for openbsd

Found-by: carl
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-08-18 13:53:55 +02:00
parent 3dca5a5c41
commit c5f43c8888
1 changed files with 5 additions and 1 deletions

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