Commit 3fc7b471 authored by Michael Niedermayer's avatar Michael Niedermayer

buffersink: switch from opaque to AVOptions for params

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a1e7e02e
...@@ -227,13 +227,10 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx) ...@@ -227,13 +227,10 @@ 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();
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); NULL, lavfi->graph);
av_freep(&buffersink_params); av_opt_set_int_list(sink, "pix_fmts", pix_fmts, AV_PIX_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