Applying patch from Eric that fixes 6ch resampling

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6373 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
anders 2002-06-10 12:10:52 +00:00
parent a43dd21a80
commit dc1a616150
1 changed files with 2 additions and 4 deletions

View File

@ -250,14 +250,12 @@ static int play(void* data,int len,int flags){
// Limit length to avoid over flow in plugins
int tmp = get_space();
int ret_len =(tmp<len)?tmp:len;
// keep all channels of each sample together
ret_len -= ret_len % (ao_plugin_local_data.channels*ao_plugin_local_data.bpm/8);
if(ret_len){
// Filter data
ao_plugin_data.len=ret_len;
ao_plugin_data.data=data;
// update plugins and uncoment that
// ao_plugin_data.channels=ao_plugin_local_data.channels;
// ao_plugin_data.format=ao_plugin_local_data.format;
while(plugin(i))
plugin(i++)->play();