[FFmpeg-cvslog] aacenc: fix the side calculation in search_for_ms

Young Han Lee git at videolan.org
Sat Mar 26 03:09:59 CET 2011


ffmpeg | branch: master | Young Han Lee <cpumaker at gmail.com> | Thu Mar 24 10:49:36 2011 +0900| [92efa2bdd9b6e36a70457240fd227beff1d0d039] | committer: Alex Converse

aacenc: fix the side calculation in search_for_ms

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=92efa2bdd9b6e36a70457240fd227beff1d0d039
---

 libavcodec/aaccoder.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/aaccoder.c b/libavcodec/aaccoder.c
index 1bb8c63..f3a08cf 100644
--- a/libavcodec/aaccoder.c
+++ b/libavcodec/aaccoder.c
@@ -1057,7 +1057,7 @@ static void search_for_ms(AACEncContext *s, ChannelElement *cpe,
                     for (i = 0; i < sce0->ics.swb_sizes[g]; i++) {
                         M[i] = (sce0->coeffs[start+w2*128+i]
                               + sce1->coeffs[start+w2*128+i]) * 0.5;
-                        S[i] =  sce0->coeffs[start+w2*128+i]
+                        S[i] =  M[i]
                               - sce1->coeffs[start+w2*128+i];
                     }
                     abs_pow34_v(L34, sce0->coeffs+start+w2*128, sce0->ics.swb_sizes[g]);




More information about the ffmpeg-cvslog mailing list