mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
Cosmetics: remove {}s over one-lined ifs.
Originally committed as revision 12820 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
e110f48608
commit
e4d286f1c7
@ -298,18 +298,16 @@ static int vfw_read_header(AVFormatContext *s, AVFormatParameters *ap)
|
|||||||
|
|
||||||
/* Set video format */
|
/* Set video format */
|
||||||
bisize = SendMessage(ctx->hwnd, WM_CAP_GET_VIDEOFORMAT, 0, 0);
|
bisize = SendMessage(ctx->hwnd, WM_CAP_GET_VIDEOFORMAT, 0, 0);
|
||||||
if(!bisize) {
|
if(!bisize)
|
||||||
goto fail_io;
|
goto fail_io;
|
||||||
}
|
|
||||||
bi = av_malloc(bisize);
|
bi = av_malloc(bisize);
|
||||||
if(!bi) {
|
if(!bi) {
|
||||||
vfw_read_close(s);
|
vfw_read_close(s);
|
||||||
return AVERROR_NOMEM;
|
return AVERROR_NOMEM;
|
||||||
}
|
}
|
||||||
ret = SendMessage(ctx->hwnd, WM_CAP_GET_VIDEOFORMAT, bisize, (LPARAM) bi);
|
ret = SendMessage(ctx->hwnd, WM_CAP_GET_VIDEOFORMAT, bisize, (LPARAM) bi);
|
||||||
if(!ret) {
|
if(!ret)
|
||||||
goto fail_bi;
|
goto fail_bi;
|
||||||
}
|
|
||||||
|
|
||||||
dump_bih(s, &bi->bmiHeader);
|
dump_bih(s, &bi->bmiHeader);
|
||||||
|
|
||||||
@ -332,9 +330,8 @@ static int vfw_read_header(AVFormatContext *s, AVFormatParameters *ap)
|
|||||||
/* Set sequence setup */
|
/* Set sequence setup */
|
||||||
ret = SendMessage(ctx->hwnd, WM_CAP_GET_SEQUENCE_SETUP, sizeof(cparms),
|
ret = SendMessage(ctx->hwnd, WM_CAP_GET_SEQUENCE_SETUP, sizeof(cparms),
|
||||||
(LPARAM) &cparms);
|
(LPARAM) &cparms);
|
||||||
if(!ret) {
|
if(!ret)
|
||||||
goto fail_io;
|
goto fail_io;
|
||||||
}
|
|
||||||
|
|
||||||
dump_captureparms(s, &cparms);
|
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),
|
ret = SendMessage(ctx->hwnd, WM_CAP_SET_SEQUENCE_SETUP, sizeof(cparms),
|
||||||
(LPARAM) &cparms);
|
(LPARAM) &cparms);
|
||||||
if(!ret) {
|
if(!ret)
|
||||||
goto fail_io;
|
goto fail_io;
|
||||||
}
|
|
||||||
|
|
||||||
codec = st->codec;
|
codec = st->codec;
|
||||||
codec->time_base = ap->time_base;
|
codec->time_base = ap->time_base;
|
||||||
|
Loading…
Reference in New Issue
Block a user