Changeset 1875 for pjproject


Ignore:
Timestamp:
Mar 19, 2008 2:35:43 PM (17 years ago)
Author:
bennylp
Message:

More ticket #497: division by zero in wsola when min_extra is set to zero (the default value)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/wsola.c

    r1845 r1875  
    511511    pj_assert(extra >= 0); 
    512512 
    513     if (prev_lost && extra >= wsola->min_extra) { 
     513    if (prev_lost && extra != 0 && extra >= wsola->min_extra) { 
    514514        short *dst = wsola->buf + wsola->hist_cnt + wsola->samples_per_frame; 
    515515 
Note: See TracChangeset for help on using the changeset viewer.