avcodec/truespeech: fix left shift of negative value

This commit is contained in:
Paul B Mahol 2019-09-26 16:03:33 +02:00
parent 21838cad2f
commit 9b611deef1
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ static void truespeech_synth(TSContext *dec, int16_t *out, int quart)
ptr0 = dec->tmp3; ptr0 = dec->tmp3;
for(i = 0; i < 60; i++){ for(i = 0; i < 60; i++){
int sum = out[i] << 12; int sum = out[i] * (1 << 12);
for(k = 0; k < 8; k++) for(k = 0; k < 8; k++)
sum += ptr0[k] * t[k]; sum += ptr0[k] * t[k];
for(k = 7; k > 0; k--) for(k = 7; k > 0; k--)