Ignore:
Timestamp:
02/08/07 21:36:52 (17 years ago)
Author:
r2d
Message:
  • file length should be OK for all files
  • seems there is a bug at end of file
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/branches/r2d/mpcenc/mpcenc.c

    r203 r204  
    16111611        writeStreamInfo ( &e, m.Max_Band, m.MS_Channelmode > 0, SamplesInWAVE,
    16121612                                           m.SampleFreq, Wave.Channels > 2 ? 2 : Wave.Channels);
    1613         writeBlock(&e, "SI", MPC_TRUE);
     1613        writeBlock(&e, "SI", MPC_TRUE, 0);
    16141614        writeEncoderInfo(&e, m.FullQual, m.PNS > 0, MPPENC_MAJOR, MPPENC_MINOR,
    16151615                                          MPPENC_IMPLEMENT, MPPENC_BUILD);
    1616         writeBlock(&e, "EI", MPC_FALSE);
     1616        writeBlock(&e, "EI", MPC_FALSE, 0);
    16171617        e.seek_ptr = ftell(e.outputFile);
    16181618        writeBits (&e, 0, 8);
    16191619        writeBits (&e, 0, 32); // jump 40 bits for seek table pointer
    1620         writeBlock(&e, "SP", MPC_FALSE); // reserve space for seek pointer
     1620        writeBlock(&e, "SP", MPC_FALSE, 0); // reserve space for seek pointer
    16211621
    16221622
     
    17231723                e.seek_pos++;
    17241724        }
    1725         writeBlock(&e, "AD", MPC_FALSE);
     1725        writeBlock(&e, "AD", MPC_FALSE, 0);
    17261726        writeSeekTable(&e);
    1727         writeBlock(&e, "ST", MPC_FALSE); // write seek table block
    1728         writeBlock(&e, "SE", MPC_FALSE); // write end of stream block
     1727        writeBlock(&e, "ST", MPC_FALSE, 0); // write seek table block
     1728        writeBlock(&e, "SE", MPC_FALSE, 0); // write end of stream block
    17291729    ShowProgress (&m, SamplesInWAVE, SamplesInWAVE, e.outputBits );
    17301730
Note: See TracChangeset for help on using the changeset viewer.