aboutsummaryrefslogtreecommitdiffstats
path: root/codecs/codec_g723_1.c
diff options
context:
space:
mode:
Diffstat (limited to 'codecs/codec_g723_1.c')
-rwxr-xr-xcodecs/codec_g723_1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/codecs/codec_g723_1.c b/codecs/codec_g723_1.c
index 89d2be760..b71e28cc2 100755
--- a/codecs/codec_g723_1.c
+++ b/codecs/codec_g723_1.c
@@ -200,7 +200,7 @@ static int g723tolin_framein(struct ast_translator_pvt *pvt, struct ast_frame *f
#ifdef ANNEX_B
Decod(&tmp->dec, tmpdata, f->data, 0);
for (x=0;x<Frame;x++)
- (tmp->buf + tmp->tail)[x] = tmpdata[x];
+ (tmp->buf + tmp->tail)[x] = (short)tmpdata[x];
#else
Decod(&tmp->dec, tmp->buf + tmp->tail, f->data, 0);
#endif