[FFmpeg-cvslog] avcodec/adpcm_data: use uint16_t to handle all values

Paul B Mahol git at videolan.org
Sat Jun 24 23:33:00 EEST 2017


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Jun 24 22:27:10 2017 +0200| [10542491113d7b1378da669b8edcdc268b82322a] | committer: Paul B Mahol

avcodec/adpcm_data: use uint16_t to handle all values

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=10542491113d7b1378da669b8edcdc268b82322a
---

 libavcodec/adpcm_data.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/adpcm_data.c b/libavcodec/adpcm_data.c
index 52271be26e..4cce0a5857 100644
--- a/libavcodec/adpcm_data.c
+++ b/libavcodec/adpcm_data.c
@@ -106,7 +106,7 @@ const int8_t ff_adpcm_yamaha_difflookup[] = {
     -1, -3, -5, -7, -9, -11, -13, -15
 };
 
-const int16_t ff_adpcm_afc_coeffs[2][16] = {
+const uint16_t ff_adpcm_afc_coeffs[2][16] = {
     { 0, 2048, 0, 1024, 4096, 3584, 3072, 4608, 4200, 4800, 5120, 2048, 1024, 64512, 64512, 63488 },
     { 0, 0, 2048, 1024, 63488, 64000, 64512, 62976, 63288, 63236, 62464, 63488, 64512, 1024, 0, 0 }
 };



More information about the ffmpeg-cvslog mailing list