summaryrefslogtreecommitdiffstats
path: root/libao2/pl_format.c
diff options
context:
space:
mode:
Diffstat (limited to 'libao2/pl_format.c')
-rw-r--r--libao2/pl_format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libao2/pl_format.c b/libao2/pl_format.c
index 9761911743..1b31ff92b3 100644
--- a/libao2/pl_format.c
+++ b/libao2/pl_format.c
@@ -228,7 +228,7 @@ static int play(){
switch(pl_format.in&SIGN_MASK){
case(US):
for(i=0;i<len;i++)
- ((int32_t*)in_data)[i]=(int32_t)(-(1<<31-1)+((uint32_t*)in_data)[i]);
+ ((int32_t*)in_data)[i]=(int32_t)(((uint32_t*)in_data)[i]-0x80000000);
break;
case(SI):
for(i=0;i<len;i++)