summaryrefslogtreecommitdiff
path: root/libavdevice/vfwcap.c
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2008-04-14 15:13:06 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2008-04-14 15:13:06 +0000
commite4d286f1c7df3c0920175da0ce3e90a71e4e4859 (patch)
treec393c986d6698a58dab954cd26fd9ab5a14545a4 /libavdevice/vfwcap.c
parente110f48608f2ce3d9dca05e7bfc414bd8da02043 (diff)
downloadffmpeg-e4d286f1c7df3c0920175da0ce3e90a71e4e4859.tar.gz
Cosmetics: remove {}s over one-lined ifs.
Originally committed as revision 12820 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavdevice/vfwcap.c')
-rw-r--r--libavdevice/vfwcap.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c
index 1ab5548cef..5bf94c03ae 100644
--- a/libavdevice/vfwcap.c
+++ b/libavdevice/vfwcap.c
@@ -298,18 +298,16 @@ static int vfw_read_header(AVFormatContext *s, AVFormatParameters *ap)
/* Set video format */
bisize = SendMessage(ctx->hwnd, WM_CAP_GET_VIDEOFORMAT, 0, 0);
- if(!bisize) {
+ if(!bisize)
goto fail_io;
- }
bi = av_malloc(bisize);
if(!bi) {
vfw_read_close(s);
return AVERROR_NOMEM;
}
ret = SendMessage(ctx->hwnd, WM_CAP_GET_VIDEOFORMAT, bisize, (LPARAM) bi);
- if(!ret) {
+ if(!ret)
goto fail_bi;
- }
dump_bih(s, &bi->bmiHeader);
@@ -332,9 +330,8 @@ static int vfw_read_header(AVFormatContext *s, AVFormatParameters *ap)
/* Set sequence setup */
ret = SendMessage(ctx->hwnd, WM_CAP_GET_SEQUENCE_SETUP, sizeof(cparms),
(LPARAM) &cparms);
- if(!ret) {
+ if(!ret)
goto fail_io;
- }
dump_captureparms(s, &cparms);
@@ -348,9 +345,8 @@ static int vfw_read_header(AVFormatContext *s, AVFormatParameters *ap)
ret = SendMessage(ctx->hwnd, WM_CAP_SET_SEQUENCE_SETUP, sizeof(cparms),
(LPARAM) &cparms);
- if(!ret) {
+ if(!ret)
goto fail_io;
- }
codec = st->codec;
codec->time_base = ap->time_base;