Showing the changes to libavfilter/avfiltergraph.c (1 of 1 file). Show all
Unified · Split
| @@ -236,8 +236,7 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx) · 235 unmodified lines | ||
| 236 | 236 | |
| 237 | 237 | snprintf(inst_name, sizeof(inst_name), "auto-inserted resampler %d", |
| 238 | 238 | resampler_count++); |
| 239 | − if ((ret = avfilter_graph_create_filter(&convert, | |
| 240 | − avfilter_get_by_name("resample"), | |
| 239 | + if ((ret = avfilter_graph_create_filter(&convert, filter, | |
| 241 | 240 | inst_name, NULL, NULL, graph)) < 0) |
| 242 | 241 | return ret; |
| 243 | 242 | break; |