[FFmpeg-cvslog] mpegaudiodec: Use clearer pointer math

Vitor Sessak git at videolan.org
Sun Jan 8 04:21:41 CET 2012


ffmpeg | branch: master | Vitor Sessak <vitor1001 at gmail.com> | Tue Jan  3 21:25:59 2012 +0100| [96219141e2b2a71fde4dca5505325d21f7cc10b7] | committer: Ronald S. Bultje

mpegaudiodec: Use clearer pointer math

Signed-off-by: Ronald S. Bultje <rsbultje at gmail.com>

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

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

diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c
index 1b50f9f..cd7b7f5 100644
--- a/libavcodec/mpegaudiodec.c
+++ b/libavcodec/mpegaudiodec.c
@@ -1411,7 +1411,7 @@ static void compute_imdct(MPADecodeContext *s, GranuleDef *g,
     }
     for (j = mdct_long_end; j < sblimit; j++) {
         /* select frequency inversion */
-        win     = mdct_win[2] + ((4 * 36) & -(j & 1));
+        win     = mdct_win[2 + (4  & -(j & 1))];
         out_ptr = sb_samples + j;
 
         for (i = 0; i < 6; i++) {



More information about the ffmpeg-cvslog mailing list