Commit a1e7e02e authored by Michael Niedermayer's avatar Michael Niedermayer

abuffersink: switch from opaque to AVOptions for params

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f16a6f66
...@@ -243,13 +243,12 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx) ...@@ -243,13 +243,12 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx)
AV_SAMPLE_FMT_S32, AV_SAMPLE_FMT_S32,
AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_FLT,
AV_SAMPLE_FMT_DBL, -1 }; AV_SAMPLE_FMT_DBL, -1 };
AVABufferSinkParams *abuffersink_params = av_abuffersink_params_alloc();
abuffersink_params->sample_fmts = sample_fmts;
ret = avfilter_graph_create_filter(&sink, abuffersink, ret = avfilter_graph_create_filter(&sink, abuffersink,
inout->name, NULL, inout->name, NULL,
abuffersink_params, lavfi->graph); NULL, lavfi->graph);
av_free(abuffersink_params);
av_opt_set_int_list(sink, "sample_fmts", sample_fmts, AV_SAMPLE_FMT_NONE, AV_OPT_SEARCH_CHILDREN);
if (ret < 0) if (ret < 0)
goto end; goto end;
} }
......
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