summaryrefslogtreecommitdiff
path: root/libavcodec/adpcm.c
diff options
context:
space:
mode:
authorDaniel Verkamp <daniel@drv.nu>2009-10-22 15:57:04 +0000
committerDaniel Verkamp <daniel@drv.nu>2009-10-22 15:57:04 +0000
commitbb7d0e87aedef2f66ab40324cd31cb5db5f568c8 (patch)
tree5fb0b87537757fa70102c8920d3807e7e1ca40d6 /libavcodec/adpcm.c
parent415e6d2930f65d5700f653972ac17d77db9d95f2 (diff)
Indicate that AdaptCoeff1 and 2 are functions of the actual coefficients.
Originally committed as revision 20345 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/adpcm.c')
-rw-r--r--libavcodec/adpcm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index 13f20b4293..ebf37dbcf9 100644
--- a/libavcodec/adpcm.c
+++ b/libavcodec/adpcm.c
@@ -86,10 +86,12 @@ static const int AdaptationTable[] = {
768, 614, 512, 409, 307, 230, 230, 230
};
+/** Divided by 4 to fit in 8-bit integers */
static const uint8_t AdaptCoeff1[] = {
64, 128, 0, 48, 60, 115, 98
};
+/** Divided by 4 to fit in 8-bit integers */
static const int8_t AdaptCoeff2[] = {
0, -64, 0, 16, 0, -52, -58
};