OSDN Git Service

sipr: Use memmove() to copy overlapped buffers.
authorAlex Converse <alex.converse@gmail.com>
Sat, 18 Jun 2011 22:42:57 +0000 (15:42 -0700)
committerAlex Converse <alex.converse@gmail.com>
Sun, 19 Jun 2011 05:12:21 +0000 (22:12 -0700)
libavcodec/sipr.c

index 17e7e85..f4f12d8 100644 (file)
@@ -461,7 +461,7 @@ static void decode_frame(SiprContext *ctx, SiprParameters *params,
         memcpy(ctx->postfilter_syn5k0, ctx->postfilter_syn5k0 + frame_size,
                LP_FILTER_ORDER*sizeof(float));
     }
-    memcpy(ctx->excitation, excitation - PITCH_DELAY_MAX - L_INTERPOL,
+    memmove(ctx->excitation, excitation - PITCH_DELAY_MAX - L_INTERPOL,
            (PITCH_DELAY_MAX + L_INTERPOL) * sizeof(float));
 
     ff_acelp_apply_order_2_transfer_function(out_data, synth,