Mercurial > mplayer.hg
comparison libao2/pl_format.c @ 7075:b9f7aec2e07d
Fixed *= bug in length calculation
author | anders |
---|---|
date | Fri, 23 Aug 2002 01:41:12 +0000 |
parents | 2eec40929570 |
children | 420e2b2f8e5a |
comparison
equal
deleted
inserted
replaced
7074:136332c7da42 | 7075:b9f7aec2e07d |
---|---|
171 static int play(){ | 171 static int play(){ |
172 register int i=0; | 172 register int i=0; |
173 void* in_data=ao_plugin_data.data; | 173 void* in_data=ao_plugin_data.data; |
174 void* out_data=pl_format.data; | 174 void* out_data=pl_format.data; |
175 int len=(ao_plugin_data.len)>>(pl_format.in&NBITS_MASK); | 175 int len=(ao_plugin_data.len)>>(pl_format.in&NBITS_MASK); |
176 ao_plugin_data.len=(int)(((double)ao_plugin_data.len)*=pl_format.sz_mult); | 176 ao_plugin_data.len=(int)(((double)ao_plugin_data.len)*pl_format.sz_mult); |
177 | 177 |
178 // Change to little endian (Is this true for sun ?) | 178 // Change to little endian (Is this true for sun ?) |
179 if((pl_format.in&END_MASK)!=LE){ | 179 if((pl_format.in&END_MASK)!=LE){ |
180 switch(pl_format.in&NBITS_MASK){ | 180 switch(pl_format.in&NBITS_MASK){ |
181 case(B16):{ | 181 case(B16):{ |