[FFmpeg-soc] [soc]: r2801 - aac/aac.c

lorenm subversion at mplayerhq.hu
Wed Jul 16 08:29:41 CEST 2008


Author: lorenm
Date: Wed Jul 16 08:29:41 2008
New Revision: 2801

Log:
fix float_to_int16_c bias when downmixing aac


Modified:
   aac/aac.c

Modified: aac/aac.c
==============================================================================
--- aac/aac.c	(original)
+++ aac/aac.c	Wed Jul 16 08:29:41 2008
@@ -2220,7 +2220,7 @@ static int output_samples(AVCodecContext
         if(avccontext->channels == 2) {
             if(ac->pcs.pseudo_surround) {
                 for(i = 0; i < 1024; i++) {
-                    *out++ = *l++ + *c   - *sl   - *sr   - ac->add_bias * 3;
+                    *out++ = *l++ + *c   - *sl   - *sr   + ac->add_bias;
                     *out++ = *r++ + *c++ + *sl++ + *sr++ - ac->add_bias * 3;
                 }
             } else {



More information about the FFmpeg-soc mailing list