summaryrefslogtreecommitdiffstats
path: root/libao2/pl_resample.c
diff options
context:
space:
mode:
authoranders <anders@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-27 10:41:43 +0000
committeranders <anders@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-27 10:41:43 +0000
commitc0451487611b4338397377207fc479caf1dcd5f7 (patch)
tree97d5f6ceb77b313ed51b8fce8a1d5a513096948d /libao2/pl_resample.c
parent3764d12de695079751769208b9ace08107e23b6d (diff)
downloadmpv-c0451487611b4338397377207fc479caf1dcd5f7.tar.bz2
mpv-c0451487611b4338397377207fc479caf1dcd5f7.tar.xz
Fixed sig 11 caused by resampling plugin, some cosmetic changes and speed improvements
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4375 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2/pl_resample.c')
-rw-r--r--libao2/pl_resample.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libao2/pl_resample.c b/libao2/pl_resample.c
index e7b2e21d21..3cc0b9beaf 100644
--- a/libao2/pl_resample.c
+++ b/libao2/pl_resample.c
@@ -91,8 +91,8 @@ static int control(int cmd,int arg){
if(!pl_resample.data)
return CONTROL_ERROR;
ao_plugin_data.len = (int)((double)ao_plugin_data.len *
- ((double)pl_resample.up)/
- ((double)pl_resample.dn));
+ ((double)pl_resample.dn)/
+ ((double)pl_resample.up));
return CONTROL_OK;
}
return -1;