Ignore:
Timestamp:
03/29/07 18:29:08 (18 years ago)
Author:
r2d
Message:

divide by 0 bug removed

File:
1 edited

Legend:

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

    r219 r256  
    118118
    119119    printf("%u samples ", total_samples);
     120        if (sum <= 0)
     121                sum = 1;
    120122        total_samples = (mpc_uint32_t) ((mpc_uint64_t) total_samples * CLOCKS_PER_SEC * 100 / ((mpc_uint64_t)si.sample_freq * sum));
    121123    printf("decoded in %u ms (%u.%02ux)\n",
Note: See TracChangeset for help on using the changeset viewer.