]> git.sesse.net Git - ffmpeg/commitdiff
avfiltergraph: switch to swresample by default
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 16 May 2012 01:54:37 +0000 (03:54 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 16 May 2012 01:54:37 +0000 (03:54 +0200)
all known bugs in the interface code have been fixed

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/avfiltergraph.c

index 90d7560d6e8d8fc784b7834c1c44b91d70fe7aab..987b024b57b5987bf275c31b3c75dbb683408cfb 100644 (file)
@@ -310,7 +310,7 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx)
                         return ret;
                     break;
                 case AVMEDIA_TYPE_AUDIO:
-                    if (!(filter = avfilter_get_by_name("resample"))) {
+                    if (!(filter = avfilter_get_by_name("aresample"))) {
                         av_log(log_ctx, AV_LOG_ERROR, "'resample' filter "
                                "not present, cannot convert audio formats.\n");
                         return AVERROR(EINVAL);
@@ -319,7 +319,7 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx)
                     snprintf(inst_name, sizeof(inst_name), "auto-inserted resampler %d",
                              resampler_count++);
                     if ((ret = avfilter_graph_create_filter(&convert,
-                                                            avfilter_get_by_name("resample"),
+                                                            avfilter_get_by_name("aresample"),
                                                             inst_name, NULL, NULL, graph)) < 0)
                         return ret;
                     break;