Ignore:
Timestamp:
04/19/07 19:55:04 (18 years ago)
Author:
r2d
Message:

was always returning error after last frame

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/branches/r2d/libmpcdec/mpc_demux.c

    r273 r278  
    411411                r = d->bits_reader;
    412412                mpc_decoder_decode_frame(d->d, &d->bits_reader, i);
    413                 if (d->block_bits != ((d->bits_reader.buff - r.buff) << 3) + r.count - d->bits_reader.count) {
     413                if (i->bits != -1 && d->block_bits != ((d->bits_reader.buff - r.buff) << 3) + r.count - d->bits_reader.count) {
    414414                        i->bits = -1; // we pretend it's end of file
    415415                        return MPC_STATUS_INVALIDSV;
Note: See TracChangeset for help on using the changeset viewer.