summaryrefslogtreecommitdiff
path: root/libavcodec/sipr.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-06-20 03:49:51 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-06-20 04:07:34 +0200
commit56e11d230525bb9659e79d3253351b94ec3f8478 (patch)
treebfe7699bce96baf2092ba871a58c7d6845657632 /libavcodec/sipr.c
parent4aeb7769136ae60586d88d17fcce05be9669e72a (diff)
parent8d3d3436e2596e27571b86eb97c66971a1a7431b (diff)
Merge remote-tracking branch 'qatar/master'
* qatar/master: Drop git- prefix from version labels Use the contents of RELEASE as version fallback instead of 'UNKNOWN' path64/open64: filter out unsupported flags Add Release Notes sipr: Drop unused DSPContext sipr: include string.h for mem*() sipr: Use memmove() to copy overlapped buffers. h264: drop some ugly casts Conflicts: version.sh Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/sipr.c')
-rw-r--r--libavcodec/sipr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/sipr.c b/libavcodec/sipr.c
index b96e3b9024..9befe8a158 100644
--- a/libavcodec/sipr.c
+++ b/libavcodec/sipr.c
@@ -23,6 +23,7 @@
#include <math.h>
#include <stdint.h>
+#include <string.h>
#include "libavutil/mathematics.h"
#include "avcodec.h"
@@ -461,7 +462,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,
@@ -495,8 +496,6 @@ static av_cold int sipr_decoder_init(AVCodecContext * avctx)
avctx->sample_fmt = AV_SAMPLE_FMT_FLT;
- dsputil_init(&ctx->dsp, avctx);
-
return 0;
}