Ignore:
Timestamp:
05/03/07 14:42:31 (18 years ago)
Author:
r2d
Message:

added error reporting to mpc2sv8

File:
1 edited

Legend:

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

    r307 r309  
    149149
    150150                demux->d->samples_to_skip = MPC_FRAME_LENGTH + MPC_DECODER_SYNTH_DELAY;
    151                 mpc_demux_decode(demux, &frame);
     151                err = mpc_demux_decode(demux, &frame);
    152152
    153153                if(frame.bits == -1) break;
     
    156156                writeBitstream_SV8 ( &e, si.max_band); // write SV8-Bitstream
    157157        }
     158
     159        if (err != MPC_STATUS_OK)
     160                fprintf(stderr, "An error occured while decoding, this file may be corrupted\n");
     161
    158162    // write the last incomplete block
    159163        if (e.framesInBlock != 0) {
     
    193197        mpc_encoder_exit(&e);
    194198
    195         return MPC_STATUS_OK;
     199        return err;
    196200}
Note: See TracChangeset for help on using the changeset viewer.