[libav-commits] avconv: don't pass a bogus parameter to avfilter_graph_create_filter().

Anton Khirnov git at libav.org
Mon Sep 17 15:52:59 CEST 2012


Module: libav
Branch: master
Commit: 58dee6e62d593747b5dbe8ce6c2ff1833151b9b0

Author:    Anton Khirnov <anton at khirnov.net>
Committer: Anton Khirnov <anton at khirnov.net>
Date:      Sat Aug 18 16:15:42 2012 +0200

avconv: don't pass a bogus parameter to avfilter_graph_create_filter().

The buffer sink does not take any parameters.

Fixes an uninitialized variable warning.

---

 avconv_filter.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/avconv_filter.c b/avconv_filter.c
index 4e5c1ec..ec38957 100644
--- a/avconv_filter.c
+++ b/avconv_filter.c
@@ -191,7 +191,7 @@ static int configure_output_video_filter(FilterGraph *fg, OutputFilter *ofilter,
     snprintf(name, sizeof(name), "output stream %d:%d", ost->file_index, ost->index);
     ret = avfilter_graph_create_filter(&ofilter->filter,
                                        avfilter_get_by_name("buffersink"),
-                                       name, NULL, pix_fmts, fg->graph);
+                                       name, NULL, NULL, fg->graph);
     if (ret < 0)
         return ret;
 



More information about the libav-commits mailing list