Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-02-20 19:47:19 +0300
committerMichael Niedermayer <michaelni@gmx.at>2011-02-22 04:38:41 +0300
commit46382ae2ec4f705e574f83164f3ab58178e000e9 (patch)
tree73937c89ac8edc2c444ea601e403de847b46c946 /libavcodec
parentf1f792117f3375478fb0043369014b575dfa5e75 (diff)
amrnb: use correct size when copying lsf_r array
lsf_r is an array of int16_t, not float. Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 1efa772e20be5869817b2370a557bb14e7ce2fff)
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/amrnbdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/amrnbdec.c b/libavcodec/amrnbdec.c
index ec896c7dfb..2883b9c398 100644
--- a/libavcodec/amrnbdec.c
+++ b/libavcodec/amrnbdec.c
@@ -255,7 +255,7 @@ static void lsf2lsp_for_mode12k2(AMRContext *p, double lsp[LP_FILTER_ORDER],
}
if (update)
- memcpy(p->prev_lsf_r, lsf_r, LP_FILTER_ORDER * sizeof(float));
+ memcpy(p->prev_lsf_r, lsf_r, LP_FILTER_ORDER * sizeof(*lsf_r));
for (i = 0; i < LP_FILTER_ORDER; i++)
lsf_q[i] = lsf_r[i] * (LSF_R_FAC / 8000.0) + lsf_no_r[i] * (1.0 / 8000.0);