g723.1: fix addition overflow
authorMans Rullgard <mans@mansr.com>
Fri, 10 Aug 2012 00:17:20 +0000 (01:17 +0100)
committerMans Rullgard <mans@mansr.com>
Fri, 10 Aug 2012 11:18:38 +0000 (12:18 +0100)
commit05c36e0e5fbf0b75dbbbd327ad2f6a62992f9262
tree5799d43568ed2422cced6c16f973c3464f9e6b3b
parent52aa3015a3c895cf74e555c4bb56c08cd067383e
g723.1: fix addition overflow

This addition must be done as 64-bit to avoid overflow and for
the subsequent clipping to be meaningful.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/g723_1.c
tests/ref/fate/g723_1-dec-3