Commit 6b21770c authored by vaclav's avatar vaclav
Browse files

fix build error

parent 87ad0246
Loading
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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;
@@ -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 ) );