[FFmpeg-soc] [soc]: r2043 - dcaenc/dcaenc.c

kostya subversion at mplayerhq.hu
Wed Mar 26 06:54:12 CET 2008


Author: kostya
Date: Wed Mar 26 06:54:12 2008
New Revision: 2043

Log:
incorrect input array referencing

Modified:
   dcaenc/dcaenc.c

Modified: dcaenc/dcaenc.c
==============================================================================
--- dcaenc/dcaenc.c	(original)
+++ dcaenc/dcaenc.c	Wed Mar 26 06:54:12 2008
@@ -327,7 +327,7 @@ static int DCA_encode_frame(AVCodecConte
         for (channel=0; channel<2 ; channel++) {
             /* Get 32 PCM samples */
             for (k = 0; k < 32; k++) { /* k is the sample number in a 32-sample block */
-                c->pcm[k] = samples[4 * (32*i+k) + 2 * channel] << 16;
+                c->pcm[k] = samples[2 * (32*i+k) + channel] << 16;
             }
         /* Put subband samples into the proper place */
         qmf_decompose(c, c->pcm, &c->subband[i][channel][0], channel);



More information about the FFmpeg-soc mailing list