From 8c7855e1b4efeab4e83ca7d87f6854149eb5cc2e Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 26 Dec 2004 11:58:07 +0000 Subject: [PATCH] Use lavcresample when accuracy-optimized audio filter chain is requested. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14244 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libaf/af.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libaf/af.c b/libaf/af.c index ad68424492..aabc6c767c 100644 --- a/libaf/af.c +++ b/libaf/af.c @@ -380,12 +380,13 @@ int af_init(af_stream_t* s, int force_output) 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"))