[MPlayer-dev-eng] [PATCH] use lavcresample with -af-adv force=1 (optimize for accuracy).
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Sat Dec 25 12:44:19 CET 2004
Hi,
the attached patch does what the subject says...
Please comment, I intend to apply tomorrow.
Greetings,
Reimar Döffinger
-------------- next part --------------
Index: libaf/af.c
===================================================================
RCS file: /cvsroot/mplayer/main/libaf/af.c,v
retrieving revision 1.34
diff -u -r1.34 af.c
--- libaf/af.c 20 Nov 2004 14:41:51 -0000 1.34
+++ libaf/af.c 18 Dec 2004 11:45:40 -0000
@@ -376,12 +376,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"))
More information about the MPlayer-dev-eng
mailing list