Browse code

avfiltergraph: switch to swresample by default

all known bugs in the interface code have been fixed

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2012/05/16 10:54:37
Showing 1 changed files
... ...
@@ -310,7 +310,7 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx)
310 310
                         return ret;
311 311
                     break;
312 312
                 case AVMEDIA_TYPE_AUDIO:
313
-                    if (!(filter = avfilter_get_by_name("resample"))) {
313
+                    if (!(filter = avfilter_get_by_name("aresample"))) {
314 314
                         av_log(log_ctx, AV_LOG_ERROR, "'resample' filter "
315 315
                                "not present, cannot convert audio formats.\n");
316 316
                         return AVERROR(EINVAL);
... ...
@@ -319,7 +319,7 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx)
319 319
                     snprintf(inst_name, sizeof(inst_name), "auto-inserted resampler %d",
320 320
                              resampler_count++);
321 321
                     if ((ret = avfilter_graph_create_filter(&convert,
322
-                                                            avfilter_get_by_name("resample"),
322
+                                                            avfilter_get_by_name("aresample"),
323 323
                                                             inst_name, NULL, NULL, graph)) < 0)
324 324
                         return ret;
325 325
                     break;