mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-01 10:11:01 +00:00
lavd/lavfi: reindent block in lavfi_read_header
This commit is contained in:
parent
4d475f7eb3
commit
f1622a17fd
@ -187,22 +187,22 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (type == AVMEDIA_TYPE_VIDEO) {
|
if (type == AVMEDIA_TYPE_VIDEO) {
|
||||||
AVBufferSinkParams *buffersink_params = av_buffersink_params_alloc();
|
AVBufferSinkParams *buffersink_params = av_buffersink_params_alloc();
|
||||||
|
|
||||||
#if FF_API_OLD_VSINK_API
|
#if FF_API_OLD_VSINK_API
|
||||||
ret = avfilter_graph_create_filter(&sink, buffersink,
|
ret = avfilter_graph_create_filter(&sink, buffersink,
|
||||||
inout->name, NULL,
|
inout->name, NULL,
|
||||||
pix_fmts, lavfi->graph);
|
pix_fmts, lavfi->graph);
|
||||||
#else
|
#else
|
||||||
buffersink_params->pixel_fmts = pix_fmts;
|
buffersink_params->pixel_fmts = pix_fmts;
|
||||||
ret = avfilter_graph_create_filter(&sink, buffersink,
|
ret = avfilter_graph_create_filter(&sink, buffersink,
|
||||||
inout->name, NULL,
|
inout->name, NULL,
|
||||||
buffersink_params, lavfi->graph);
|
buffersink_params, lavfi->graph);
|
||||||
#endif
|
#endif
|
||||||
av_freep(&buffersink_params);
|
av_freep(&buffersink_params);
|
||||||
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto end;
|
goto end;
|
||||||
} else if (type == AVMEDIA_TYPE_AUDIO) {
|
} else if (type == AVMEDIA_TYPE_AUDIO) {
|
||||||
enum AVSampleFormat sample_fmts[] = { AV_SAMPLE_FMT_S16, -1 };
|
enum AVSampleFormat sample_fmts[] = { AV_SAMPLE_FMT_S16, -1 };
|
||||||
const int packing_fmts[] = { AVFILTER_PACKED, -1 };
|
const int packing_fmts[] = { AVFILTER_PACKED, -1 };
|
||||||
|
Loading…
Reference in New Issue
Block a user