[FFmpeg-cvslog] abuffersink: switch from opaque to AVOptions for params

Michael Niedermayer git at videolan.org
Fri Apr 12 13:45:27 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Apr 12 13:38:00 2013 +0200| [a1e7e02eaffd39fd08875f019f29f2fc8bf77cbf] | committer: Michael Niedermayer

abuffersink: switch from opaque to AVOptions for params

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a1e7e02eaffd39fd08875f019f29f2fc8bf77cbf
---

 libavdevice/lavfi.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index 159832a..4b1fb92 100644
--- a/libavdevice/lavfi.c
+++ b/libavdevice/lavfi.c
@@ -243,13 +243,12 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx)
                                                   AV_SAMPLE_FMT_S32,
                                                   AV_SAMPLE_FMT_FLT,
                                                   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,
                                                inout->name, NULL,
-                                               abuffersink_params, lavfi->graph);
-            av_free(abuffersink_params);
+                                               NULL, lavfi->graph);
+
+            av_opt_set_int_list(sink, "sample_fmts", sample_fmts,  AV_SAMPLE_FMT_NONE, AV_OPT_SEARCH_CHILDREN);
             if (ret < 0)
                 goto end;
         }



More information about the ffmpeg-cvslog mailing list