Commit b3b5a145 authored by ramiro's avatar ramiro

Cosmetics: remove {}s over one-lined ifs.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12820 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ffb055fc
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment