Unverified Commit 33788663 authored by Wolle's avatar Wolle Committed by GitHub

fix plop sound in polyphaseMono() #231

parent 0a58a846
......@@ -3,7 +3,7 @@
* libhelix_HMP3DECODER
*
* Created on: 26.10.2018
* Updated on: 12.11.2021
* Updated on: 27.11.2021
*/
#include "mp3_decoder.h"
......@@ -3443,7 +3443,7 @@ int IMDCT( int gr, int ch) {
/* all long transforms */
int x=(m_HuffmanInfo->nonZeroBound[ch] + 7) / 18 + 1;
bc.nBlocksLong=(x<32 ? x : 32);
//bc.nBlocksLong = MIN((hi->nonZeroBound[ch] + 7) / 18 + 1, 32);
//bc.nBlocksLong = min((hi->nonZeroBound[ch] + 7) / 18 + 1, 32);
nBfly = bc.nBlocksLong - 1;
} else if (m_SideInfoSub[gr][ch].blockType == 2 && m_SideInfoSub[gr][ch].mixedBlock) {
/* mixed block - long transforms until cutoff, then short transforms */
......@@ -3749,7 +3749,7 @@ void PolyphaseMono(short *pcm, int *vbuf, const uint32_t *coefBase){
int vLo, vHi, c1, c2;
uint64_t sum1L, sum2L, rndVal;
rndVal = (uint64_t)( 1ULL << ((m_DQ_FRACBITS_OUT - 2 - 2 - 1) - 1 + (32 - m_CSHIFT)) );
rndVal = (uint64_t)( 1ULL << ((m_DQ_FRACBITS_OUT - 2 - 2 - 15) - 1 + (32 - m_CSHIFT)) );
/* special case, output sample 0 */
coef = coefBase;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment