[MPlayer-cvslog] CVS: main/libaf af.c,1.35,1.36
Felix Buenemann
atmosfear at users.sourceforge.net
Sun Dec 26 14:24:16 CET 2004
On Sunday 26 December 2004 12:58, Reimar Döffinger CVS wrote:
> CVS change done by Reimar Döffinger CVS
>
> Update of /cvsroot/mplayer/main/libaf
> In directory mail:/var2/tmp/cvs-serv8321/libaf
>
> Modified Files:
> af.c
> Log Message:
> Use lavcresample when accuracy-optimized audio filter chain is requested.
shouldn't it be dependant on wether lavc is compiled in?
> Index: af.c
> ===================================================================
> RCS file: /cvsroot/mplayer/main/libaf/af.c,v
> retrieving revision 1.35
> retrieving revision 1.36
> diff -u -r1.35 -r1.36
> --- af.c 23 Dec 2004 02:09:52 -0000 1.35
> +++ af.c 26 Dec 2004 11:58:07 -0000 1.36
> @@ -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"))
>
--
Best Regards,
Atmos
____________________________________________
- MPlayer Developer - http://mplayerhq.hu/ -
____________________________________________
More information about the MPlayer-cvslog
mailing list