diff options
author | anders <anders@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-10-08 10:20:36 +0000 |
---|---|---|
committer | anders <anders@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-10-08 10:20:36 +0000 |
commit | 3e3a4733fbd6655c1fd81c64cf46fb64fd7ed736 (patch) | |
tree | 41186a2df2c7e4034df5ec95abc176a602733230 /libaf/af_resample.c | |
parent | f767a62a4291dd41ff68fe8e6277f24443ff827d (diff) | |
download | mpv-3e3a4733fbd6655c1fd81c64cf46fb64fd7ed736.tar.bz2 mpv-3e3a4733fbd6655c1fd81c64cf46fb64fd7ed736.tar.xz |
Adding function for calculating the delay caused by the filters
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7666 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libaf/af_resample.c')
-rw-r--r-- | libaf/af_resample.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libaf/af_resample.c b/libaf/af_resample.c index 7230c42f21..3d706dce83 100644 --- a/libaf/af_resample.c +++ b/libaf/af_resample.c @@ -258,7 +258,8 @@ static int control(struct af_instance_s* af, int cmd, void* arg) mp_msg(MSGT_AFILTER,MSGL_V,"[resample] New filter designed up: %i down: %i\n", s->up, s->dn); } - // Set multiplier + // Set multiplier and delay + af->delay = (double)(1000*L/2)/((double)n->rate); af->mul.n = s->up; af->mul.d = s->dn; return rv; |