Commit 0a778a8d authored by korse's avatar korse
Browse files

fix for infinite loop. break when number of samples read is zero

parent 91af3f0a
Loading
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -448,6 +448,12 @@ int32_t main( int32_t argc, char **argv )
            break;
        }

        if ( numSamplesRead == 0 )
        {
            /* end of input data */
            break;
        }

        /* Convert from int to float and from interleaved to packed */
        for ( smpl = 0; smpl < args.frameSize; ++smpl )
        {