[FFmpeg-soc] [soc] G.723.1 Decoder 290a06528d517c7049da4f0d0abf4e849b0d898e

naufal11 at gmail.com naufal11 at gmail.com
Mon Jul 5 00:04:25 CEST 2010



- Log -----------------------------------------------------------------
commit 290a06528d517c7049da4f0d0abf4e849b0d898e
Author: Naufal <naufal11 at gmail.com>
Date:   Mon Jul 5 03:34:05 2010 +0530

    Correct calculation

diff --git a/libavcodec/g723_1.c b/libavcodec/g723_1.c
index 69ff704..6bd5051 100755
--- a/libavcodec/g723_1.c
+++ b/libavcodec/g723_1.c
@@ -624,7 +624,7 @@ static int g723_1_decode_frame(AVCodecContext *avctx, void *data,
                 int offset = SUBFRAME_LEN * i;
                 comp_ppf_coeff(vector_ptr, p->pitch_lag[i >> 1],
                                ppf + i, p->cur_rate, i);
-                ff_acelp_weighted_vector_sum(out, vector_ptr + offset,
+                ff_acelp_weighted_vector_sum(out + offset, vector_ptr + offset,
                                              vector_ptr + offset + ppf[i].index,
                                              ppf[i].sc_gain, ppf[i].opt_gain,
                                              1 << 15, 16, SUBFRAME_LEN);

-----------------------------------------------------------------------

Summary of changes:
 libavcodec/g723_1.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


-- 
http://github.com/naufal/ffmpeg-soc


More information about the FFmpeg-soc mailing list