aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/truespeech.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-09-26 16:03:33 +0200
committerPaul B Mahol <onemda@gmail.com>2019-09-26 16:05:15 +0200
commit9b611deef176029750a498fe2369b4e7c7d0ffd6 (patch)
tree909ae6bd6ac93c08e4d8e7a2bd9589ff802af0cf /libavcodec/truespeech.c
parent21838cad2fc44023ad85e35d5c677e2f8d29a0ef (diff)
downloadffmpeg-9b611deef176029750a498fe2369b4e7c7d0ffd6.tar.gz
avcodec/truespeech: fix left shift of negative value
Diffstat (limited to 'libavcodec/truespeech.c')
-rw-r--r--libavcodec/truespeech.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/truespeech.c b/libavcodec/truespeech.c
index 54352851b3..799cef0945 100644
--- a/libavcodec/truespeech.c
+++ b/libavcodec/truespeech.c
@@ -281,7 +281,7 @@ static void truespeech_synth(TSContext *dec, int16_t *out, int quart)
ptr0 = dec->tmp3;
for(i = 0; i < 60; i++){
- int sum = out[i] << 12;
+ int sum = out[i] * (1 << 12);
for(k = 0; k < 8; k++)
sum += ptr0[k] * t[k];
for(k = 7; k > 0; k--)