[SCM] libav/experimental: Indicate that AdaptCoeff1 and 2 are functions of the actual coefficients.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:53:25 UTC 2013


The following commit has been merged in the experimental branch:
commit bb7d0e87aedef2f66ab40324cd31cb5db5f568c8
Author: Daniel Verkamp <daniel at drv.nu>
Date:   Thu Oct 22 15:57:04 2009 +0000

    Indicate that AdaptCoeff1 and 2 are functions of the actual coefficients.
    
    Originally committed as revision 20345 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index 13f20b4..ebf37db 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
 };

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list