Loading apps/encoder.c +2 −4 Original line number Diff line number Diff line Loading @@ -679,14 +679,14 @@ int main( if ( pcmBufSize_new != pcmBufSize ) { free( pcmBuf ); pcmBuf = malloc( max( pcmBufSize_new, pcmBufSize_orig ) * sizeof( int16_t ) ); pcmBuf = malloc( ( pcmBufSize_new > pcmBufSize_orig ? pcmBufSize_new : pcmBufSize_orig ) * sizeof( int16_t ) ); } } if ( pcmBufSize_new < pcmBufSize_orig ) { free( pcmBuf ); pcmBuf = malloc( max( pcmBufSize_new, pcmBufSize_orig ) * sizeof( int16_t ) ); pcmBuf = malloc( ( pcmBufSize_new > pcmBufSize_orig ? pcmBufSize_new : pcmBufSize_orig ) * sizeof( int16_t ) ); } pcmBufSize = pcmBufSize_orig; Loading Loading @@ -723,9 +723,7 @@ int main( else if ( pcmBufSize_new < pcmBufSize_orig ) { int16_t tmp_buf[16 * 960]; /* skip channels corresponding to non-read input file channels */ memcpy( tmp_buf, pcmBuf, pcmBufSize * sizeof( int16_t ) ); free( pcmBuf ); pcmBuf = malloc( pcmBufSize_new * sizeof( int16_t ) ); Loading Loading
apps/encoder.c +2 −4 Original line number Diff line number Diff line Loading @@ -679,14 +679,14 @@ int main( if ( pcmBufSize_new != pcmBufSize ) { free( pcmBuf ); pcmBuf = malloc( max( pcmBufSize_new, pcmBufSize_orig ) * sizeof( int16_t ) ); pcmBuf = malloc( ( pcmBufSize_new > pcmBufSize_orig ? pcmBufSize_new : pcmBufSize_orig ) * sizeof( int16_t ) ); } } if ( pcmBufSize_new < pcmBufSize_orig ) { free( pcmBuf ); pcmBuf = malloc( max( pcmBufSize_new, pcmBufSize_orig ) * sizeof( int16_t ) ); pcmBuf = malloc( ( pcmBufSize_new > pcmBufSize_orig ? pcmBufSize_new : pcmBufSize_orig ) * sizeof( int16_t ) ); } pcmBufSize = pcmBufSize_orig; Loading Loading @@ -723,9 +723,7 @@ int main( else if ( pcmBufSize_new < pcmBufSize_orig ) { int16_t tmp_buf[16 * 960]; /* skip channels corresponding to non-read input file channels */ memcpy( tmp_buf, pcmBuf, pcmBufSize * sizeof( int16_t ) ); free( pcmBuf ); pcmBuf = malloc( pcmBufSize_new * sizeof( int16_t ) ); Loading