mirror of
https://github.com/mpv-player/mpv
synced 2025-01-02 21:12:23 +00:00
100l, messed up coefficients when improving precision..
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15054 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d27e670ad0
commit
ef714f38ca
@ -573,10 +573,10 @@ void* output_to_PCM(NeAACDecHandle hDecoder,
|
||||
for(i = 0; i < frame_len; i++)
|
||||
{
|
||||
int32_t tmp;
|
||||
tmp = (ch1[i] + ((ch0[i]+ch3[i])<<1) + (ch0[i]+ch3[i]) + (1<<(REAL_BITS+2))) >> (REAL_BITS+3);
|
||||
tmp = ((ch1[i]<<2) + ((ch0[i]+ch3[i])<<1) + (ch0[i]+ch3[i]) + (1<<(REAL_BITS+2))) >> (REAL_BITS+3);
|
||||
if ((tmp+0x8000) & ~0xffff) tmp = ~(tmp>>31)-0x8000;
|
||||
short_sample_buffer[0] = tmp;
|
||||
tmp = (ch2[i] + ((ch0[i]+ch4[i])<<1) + (ch0[i]+ch4[i]) + (1<<(REAL_BITS+2))) >> (REAL_BITS+3);
|
||||
tmp = ((ch2[i]<<2) + ((ch0[i]+ch4[i])<<1) + (ch0[i]+ch4[i]) + (1<<(REAL_BITS+2))) >> (REAL_BITS+3);
|
||||
if ((tmp+0x8000) & ~0xffff) tmp = ~(tmp>>31)-0x8000;
|
||||
short_sample_buffer[1] = tmp;
|
||||
short_sample_buffer += channels;
|
||||
|
Loading…
Reference in New Issue
Block a user