Ignore:
Timestamp:
03/22/07 20:24:01 (18 years ago)
Author:
r2d
Message:
  • added build date to mpcenc
  • mpc2sv8 check for stream version
File:
1 edited

Legend:

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

    r226 r233  
    102102    mpc_demux_get_info(demux,  &si);
    103103
     104        if (si.stream_version >= 8) {
     105                fprintf(stderr, "Error : this file is already a sv8 file\n");
     106                mpc_demux_exit(demux);
     107                mpc_reader_exit_stdio(&reader);
     108                return MPC_STATUS_INVALIDSV;
     109        }
     110
    104111        mpc_encoder_init(&e, si.samples, 6, 1);
    105112        e.outputFile = fopen( argv[2], "w+b" );
     
    113120                size_t tmp_size = fread(buf, 1, mini(TMP_BUF_SIZE, r_size), in_file);
    114121                if (fwrite(buf, 1, tmp_size, e.outputFile) != tmp_size) {
    115                         fprintf(stderr, "Error writing to target file");
     122                        fprintf(stderr, "Error writing to target file\n");
    116123                        exit(!MPC_STATUS_OK);
    117124                }
Note: See TracChangeset for help on using the changeset viewer.