Ignore:
Timestamp:
05/12/07 12:43:05 (17 years ago)
Author:
r2d
Message:
  • Corrected end of loop condition when encoded file doesn't report correct length
  • Changed replay gain ref in mpcdec info
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/trunk/mpcenc/mpcenc.c

    r317 r323  
    17331733        memmove ( Main.S, Main.S + BLOCK, CENTER * sizeof(float) );
    17341734
     1735        // adapt SamplesInWAV to the real number of contained samples
     1736                if ( myfeof (Wave.fp) ) {
     1737                        stderr_printf ( "WAVE file has incorrect header: header: %.3f s, contents: %.3f s    \n",
     1738                                                        (long double)(SamplesInWAVE) / m.SampleFreq, (long double)(AllSamplesRead) / m.SampleFreq);
     1739                        break;
     1740                }
     1741
    17351742        // read samples
    17361743        CurrentRead     = Read_WAV_Samples ( &Wave, (int)minf(BLOCK, SamplesInWAVE - AllSamplesRead), &Main, CENTER, ScalingFactorl, ScalingFactorr, &Silence );
    17371744        AllSamplesRead += CurrentRead;
    1738 
    1739         // adapt SamplesInWAV to the real number of contained samples
    1740         if ( myfeof (Wave.fp) ) {
    1741                         stderr_printf ( "WAVE file has incorrect header: header: %.3f s, contents: %.3f s    \n",
    1742                                                         (long double)(SamplesInWAVE) / m.SampleFreq, (long double)(AllSamplesRead) / m.SampleFreq);
    1743         }
    17441745    }
    17451746
Note: See TracChangeset for help on using the changeset viewer.