Ignore:
Timestamp:
02/09/07 12:31:52 (17 years ago)
Author:
r2d
Message:
  • corrected a small bug
  • added copy of header and footer data (tags) of the input file
  • added encoder version conversion
File:
1 edited

Legend:

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

    r204 r205  
    17191719
    17201720    // write the last incomplete block
    1721         if ((e.block_cnt & ((1 << e.seek_pwr) - 1)) == 0) {
    1722                 e.seek_table[e.seek_pos] = ftell(e.outputFile);
    1723                 e.seek_pos++;
     1721        if (e.framesInBlock != 0) {
     1722                if ((e.block_cnt & ((1 << e.seek_pwr) - 1)) == 0) {
     1723                        e.seek_table[e.seek_pos] = ftell(e.outputFile);
     1724                        e.seek_pos++;
     1725                }
     1726                e.block_cnt++;
     1727                writeBlock(&e, "AD", MPC_FALSE, 0);
    17241728        }
    1725         writeBlock(&e, "AD", MPC_FALSE, 0);
    17261729        writeSeekTable(&e);
    17271730        writeBlock(&e, "ST", MPC_FALSE, 0); // write seek table block
Note: See TracChangeset for help on using the changeset viewer.