avconv: don't pass a bogus parameter to avfilter_graph_create_filter().
authorAnton Khirnov <anton@khirnov.net>
Sat, 18 Aug 2012 14:15:42 +0000 (16:15 +0200)
committerAnton Khirnov <anton@khirnov.net>
Mon, 17 Sep 2012 13:48:20 +0000 (15:48 +0200)
The buffer sink does not take any parameters.

Fixes an uninitialized variable warning.

avconv_filter.c

index 4e5c1ec..ec38957 100644 (file)
@@ -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;