code style

This commit is contained in:
Volker Fischer 2008-09-15 07:19:34 +00:00
parent 7824e1f758
commit 8573cd0f6b

View file

@ -261,7 +261,7 @@ CVector<short> CImaAdpcm::Decode ( const CVector<unsigned char>& vecbyAdpcm )
/* Decode the encoded 4 bit samples ------------------------------------- */
for ( i = 1; i < iAudSize; i++ )
{
const short bytecode = vecsAudio[i] & 0xF ;
const short bytecode = vecsAudio[i] & 0xF;
Q_ASSERT ( iStepindDec < IMA_STEP_SIZE_TAB_LEN );
@ -476,7 +476,7 @@ CVector<short> CMsAdpcm::Decode ( const CVector<unsigned char>& vecbyAdpcm )
if ( current > 32767 )
{
current = 32767 ;
current = 32767;
}
else
{
@ -518,9 +518,9 @@ void CMsAdpcm::ChoosePredictor ( const CVector<short>& vecsAudio,
for ( unsigned int bpred = 0; bpred < MSADPCM_ADAPT_COEFF_COUNT; bpred++ )
{
unsigned int idelta_sum = 0 ;
unsigned int idelta_sum = 0;
for ( unsigned int k = 2 ; k < 2 + idelta_count ; k++ )
for ( unsigned int k = 2; k < 2 + idelta_count; k++ )
{
idelta_sum += abs ( vecsAudio[k] -
( ( vecsAudio[k - 1] * ms_AdaptCoeff1[bpred] +