changeset 14243:e607c3796e2b

Use lavcresample when accuracy-optimized audio filter chain is requested.
author reimar
date Sun, 26 Dec 2004 11:58:07 +0000
parents 4eaf67d3fa8f
children 9b03ad0254ae
files libaf/af.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libaf/af.c	Sun Dec 26 11:54:01 2004 +0000
+++ b/libaf/af.c	Sun Dec 26 11:58:07 2004 +0000
@@ -380,12 +380,13 @@
     af_instance_t* af = NULL; // New filter
     // Check output frequency if not OK fix with resample
     if(s->last->data->rate!=s->output.rate){
-      if(NULL==(af=af_get(s,"resample"))){
+      if(NULL==(af=af_get(s,"lavcresample")) &&
+          NULL==(af=af_get(s,"resample"))){
 	if((AF_INIT_TYPE_MASK & s->cfg.force) == AF_INIT_SLOW){
 	  if(!strcmp(s->first->info->name,"format"))
-	    af = af_append(s,s->first,"resample");
+	    af = af_append(s,s->first,"lavcresample");
 	  else
-	    af = af_prepend(s,s->first,"resample");
+	    af = af_prepend(s,s->first,"lavcresample");
 	}		
 	else{
 	  if(!strcmp(s->last->info->name,"format"))