mirror of
https://github.com/mpv-player/mpv
synced 2025-02-17 13:17:13 +00:00
Fixed *= bug in length calculation
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7076 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
7870e19441
commit
2a9ec68ddc
@ -173,7 +173,7 @@ static int play(){
|
|||||||
void* in_data=ao_plugin_data.data;
|
void* in_data=ao_plugin_data.data;
|
||||||
void* out_data=pl_format.data;
|
void* out_data=pl_format.data;
|
||||||
int len=(ao_plugin_data.len)>>(pl_format.in&NBITS_MASK);
|
int len=(ao_plugin_data.len)>>(pl_format.in&NBITS_MASK);
|
||||||
ao_plugin_data.len=(int)(((double)ao_plugin_data.len)*=pl_format.sz_mult);
|
ao_plugin_data.len=(int)(((double)ao_plugin_data.len)*pl_format.sz_mult);
|
||||||
|
|
||||||
// Change to little endian (Is this true for sun ?)
|
// Change to little endian (Is this true for sun ?)
|
||||||
if((pl_format.in&END_MASK)!=LE){
|
if((pl_format.in&END_MASK)!=LE){
|
||||||
|
Loading…
Reference in New Issue
Block a user