aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-04-12 13:47:40 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-04-12 13:47:40 +0200
commit3fc7b47145da424b1908e1a86bc4e3b982be67f4 (patch)
treead0f02b616ff9e53a5dc188981b62f704abe9543
parenta1e7e02eaffd39fd08875f019f29f2fc8bf77cbf (diff)
downloadffmpeg-3fc7b47145da424b1908e1a86bc4e3b982be67f4.tar.gz
buffersink: switch from opaque to AVOptions for params
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavdevice/lavfi.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index 4b1fb924f6..15ac055dcd 100644
--- a/libavdevice/lavfi.c
+++ b/libavdevice/lavfi.c
@@ -227,13 +227,10 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx)
}
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,
inout->name, NULL,
- buffersink_params, lavfi->graph);
- av_freep(&buffersink_params);
+ NULL, lavfi->graph);
+ av_opt_set_int_list(sink, "pix_fmts", pix_fmts, AV_PIX_FMT_NONE, AV_OPT_SEARCH_CHILDREN);
if (ret < 0)
goto end;