Ignore:
Timestamp:
May 29, 2018 9:02:51 AM (11 months ago)
Author:
riza
Message:

Fix #2116: iLBC using memcpy instead of memmove for overlapping memory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/third_party/ilbc/iLBC_decode.c

    r4728 r5798  
    252252               /* update memory */ 
    253253 
    254                memcpy(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float)); 
     254               memmove(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float)); 
    255255               memcpy(mem+CB_MEML-SUBL, 
    256256 
     
    300300               /* update memory */ 
    301301 
    302                memcpy(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float)); 
     302               memmove(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float)); 
    303303               memcpy(mem+CB_MEML-SUBL, 
    304304                   &reverseDecresidual[subframe*SUBL], 
Note: See TracChangeset for help on using the changeset viewer.