summaryrefslogtreecommitdiff
path: root/libavdevice/v4l2.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2011-11-21 07:50:03 +0100
committerClément Bœsch <ubitux@gmail.com>2011-11-21 19:35:33 +0100
commit2f0f9a87d0e8d27ce6ad5b81134d01b9d2392cd1 (patch)
tree312539bfc29ba8d565c6cd958cbfbf8a8885d2bc /libavdevice/v4l2.c
parent4931c8f0f10bf8dedcf626104a6b85bfefadc6f2 (diff)
Fix various if parenthesis misplacements.
Diffstat (limited to 'libavdevice/v4l2.c')
-rw-r--r--libavdevice/v4l2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index 08ee201c79..07d3cb445d 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -634,11 +634,11 @@ static int v4l2_read_header(AVFormatContext *s1, AVFormatParameters *ap)
res = AVERROR(EIO);
goto out;
}
- if ((res = av_image_check_size(s->width, s->height, 0, s1) < 0))
+ if ((res = av_image_check_size(s->width, s->height, 0, s1)) < 0)
goto out;
s->frame_format = desired_format;
- if ((res = v4l2_set_parameters(s1, ap) < 0))
+ if ((res = v4l2_set_parameters(s1, ap)) < 0)
goto out;
st->codec->pix_fmt = fmt_v4l2ff(desired_format, codec_id);