History

avcodec/adpcm_data: Fix type mismatch for ff_adpcm_afc_coeffs

According to the header it is an array of int16_t, yet it is declared as uint16_t. Fix this by using int16_t troughout and convert the definition to use values in the range of int16_t.

Andreas Rheinhardt committed 5 years ago

Commit ac5bd4e1 parent 0a67ca61 file · +3 −3Browse files

Unified · Split

libavcodec/adpcm_data.c+3−3
@@ -106,9 +106,9 @@ const int8_t ff_adpcm_yamaha_difflookup[] = { · 105 unmodified lines
106106 -1, -3, -5, -7, -9, -11, -13, -15
107107 };
108108
109−const uint16_t ff_adpcm_afc_coeffs[2][16] = {
110− { 0, 2048, 0, 1024, 4096, 3584, 3072, 4608, 4200, 4800, 5120, 2048, 1024, 64512, 64512, 63488 },
111− { 0, 0, 2048, 1024, 63488, 64000, 64512, 62976, 63288, 63236, 62464, 63488, 64512, 1024, 0, 0 }
109+const int16_t ff_adpcm_afc_coeffs[2][16] = {
110+ { 0, 2048, 0, 1024, 4096, 3584, 3072, 4608, 4200, 4800, 5120, 2048, 1024, -1024, -1024, -2048 },
111+ { 0, 0, 2048, 1024, -2048, -1536, -1024, -2560, -2248, -2300, -3072, -2048, -1024, 1024, 0, 0 }
112112 };
113113
114114 const int16_t ff_adpcm_mtaf_stepsize[32][16] = {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t