Changeset 1969 for pjproject


Ignore:
Timestamp:
May 28, 2008 7:15:31 PM (17 years ago)
Author:
nanang
Message:

More ticket #536: fixed bug in SrcUD (missed fix, previously r1968 only fixed SrcUp?)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/third_party/resample/src/resamplesubs.c

    r1968 r1969  
    308308    Yend = Ystart + (unsigned)(nx * pFactor); 
    309309    endTime = time + (1<<Np)*(RES_WORD)nx; 
    310     while (time < endTime) 
     310 
     311    // Integer round down in dtb calculation may cause (endTime % dtb > 0),  
     312    // so it may cause resample write pass the output buffer (Y >= Yend). 
     313    // while (time < endTime) 
     314    while (Y < Yend) 
    311315    { 
    312316        xp = &X[time>>Np];      /* Ptr to current input sample */ 
Note: See TracChangeset for help on using the changeset viewer.