aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/g723_1.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/g723_1.c')
-rw-r--r--libavcodec/g723_1.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/g723_1.c b/libavcodec/g723_1.c
index 657c144895..4c1c4dad66 100644
--- a/libavcodec/g723_1.c
+++ b/libavcodec/g723_1.c
@@ -1064,9 +1064,8 @@ static int g723_1_decode_frame(AVCodecContext *avctx, void *data,
p->cur_rate);
/* Get the total excitation */
for (j = 0; j < SUBFRAME_LEN; j++) {
- vector_ptr[j] = av_clip_int16(vector_ptr[j] << 1);
- vector_ptr[j] = av_clip_int16(vector_ptr[j] +
- acb_vector[j]);
+ int v = av_clip_int16(vector_ptr[j] << 1);
+ vector_ptr[j] = av_clip_int16(v + acb_vector[j]);
}
vector_ptr += SUBFRAME_LEN;
}