[MPlayer-cvslog] CVS: main/libaf af_lavcresample.c,1.3,1.4
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Sun Dec 19 17:28:36 CET 2004
- Previous message: [MPlayer-cvslog] CVS: main/libmpcodecs vd.c, 1.80, 1.81 vf.c, 1.109, 1.110 vf.h, 1.25, 1.26
- Next message: [MPlayer-cvslog] CVS: main/libaf af_format.c, 1.16, 1.17 af_format.h, 1.3, 1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main/libaf
In directory mail:/var2/tmp/cvs-serv3902/libaf
Modified Files:
af_lavcresample.c
Log Message:
Initialize cutoff, too. Fixes crash when AF_CONTROL_COMMAND_LINE is not set.
Index: af_lavcresample.c
===================================================================
RCS file: /cvsroot/mplayer/main/libaf/af_lavcresample.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- af_lavcresample.c 3 Nov 2004 01:53:56 -0000 1.3
+++ af_lavcresample.c 19 Dec 2004 16:28:34 -0000 1.4
@@ -144,16 +144,18 @@
}
static int open(af_instance_t* af){
+ af_resample_t *s = calloc(1,sizeof(af_resample_t));
af->control=control;
af->uninit=uninit;
af->play=play;
af->mul.n=1;
af->mul.d=1;
af->data=calloc(1,sizeof(af_data_t));
- af->setup=calloc(1,sizeof(af_resample_t));
- ((af_resample_t*)af->setup)->filter_length= 16;
- ((af_resample_t*)af->setup)->phase_shift= 10;
-// ((af_resample_t*)af->setup)->setup = RSMP_INT | FREQ_SLOPPY;
+ s->filter_length= 16;
+ s->cutoff= max(1.0 - 1.0/s->filter_length, 0.80);
+ s->phase_shift= 10;
+// s->setup = RSMP_INT | FREQ_SLOPPY;
+ af->setup=s;
return AF_OK;
}
- Previous message: [MPlayer-cvslog] CVS: main/libmpcodecs vd.c, 1.80, 1.81 vf.c, 1.109, 1.110 vf.h, 1.25, 1.26
- Next message: [MPlayer-cvslog] CVS: main/libaf af_format.c, 1.16, 1.17 af_format.h, 1.3, 1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list