ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Mon Aug 18 13:53:55 2014 +0200| [c5f43c8888400f5fab6f7d2ad27e961e8d2616a5] | committer: Michael Niedermayer
avdevice/v4l2: try to fix build for openbsd Found-by: carl Signed-off-by: Michael Niedermayer <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c5f43c8888400f5fab6f7d2ad27e961e8d2616a5 --- libavdevice/v4l2.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index e1a4d23..9f9f944 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -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; } _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
