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
This commit is contained in:
reimar 2004-12-26 11:58:07 +00:00
parent a5892844f6
commit 8c7855e1b4
1 changed files with 4 additions and 3 deletions

View File

@ -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"))