avconv: fix usage of deprecated lavfi API
authorAnton Khirnov <anton@khirnov.net>
Sun, 4 Aug 2013 14:38:25 +0000 (16:38 +0200)
committerAnton Khirnov <anton@khirnov.net>
Mon, 5 Aug 2013 08:51:41 +0000 (10:51 +0200)
avconv_filter.c

index da55d3c..085b6f1 100644 (file)
@@ -384,7 +384,7 @@ static int configure_output_audio_filter(FilterGraph *fg, OutputFilter *ofilter,
 {                                                                  \
     AVFilterContext *ctx = inout->filter_ctx;                      \
     AVFilterPad *pads = in ? ctx->input_pads  : ctx->output_pads;  \
-    int       nb_pads = in ? ctx->input_count : ctx->output_count; \
+    int       nb_pads = in ? ctx->nb_inputs   : ctx->nb_outputs;   \
     AVIOContext *pb;                                               \
                                                                    \
     if (avio_open_dyn_buf(&pb) < 0)                                \