Ignore:
Timestamp:
May 29, 2018 9:02:51 AM (7 years 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_encode.c

    r638 r5798  
    309309               /* update memory */ 
    310310 
    311                memcpy(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float)); 
     311               memmove(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float)); 
    312312               memcpy(mem+CB_MEML-SUBL, 
    313313 
     
    387387               /* update memory */ 
    388388 
    389                memcpy(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float)); 
     389               memmove(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float)); 
    390390               memcpy(mem+CB_MEML-SUBL, 
    391391                   &reverseDecresidual[subframe*SUBL], 
Note: See TracChangeset for help on using the changeset viewer.