Browse code

Make query_formats() increment the scaler_count after each scaler insertion.

Originally committed as revision 21124 to svn://svn.ffmpeg.org/ffmpeg/trunk

Stefano Sabatini authored on 2010/01/10 23:23:19
Showing 1 changed files
... ...
@@ -132,7 +132,7 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx)
132 132
                     char scale_args[256];
133 133
                     /* couldn't merge format lists. auto-insert scale filter */
134 134
                     snprintf(inst_name, sizeof(inst_name), "auto-inserted scaler %d",
135
-                             scaler_count);
135
+                             scaler_count++);
136 136
                     scale =
137 137
                         avfilter_open(avfilter_get_by_name("scale"),inst_name);
138 138