summaryrefslogtreecommitdiff
path: root/libavcodec/mpegaudiodec.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2012-01-03 21:25:59 +0100
committerRonald S. Bultje <rsbultje@gmail.com>2012-01-07 08:23:27 -0800
commit96219141e2b2a71fde4dca5505325d21f7cc10b7 (patch)
treea336a1fdfd594565439e135b79807acbb02a41c6 /libavcodec/mpegaudiodec.c
parent4b4acc544f9b7b8bedaae4613913e140f4430aa8 (diff)
downloadffmpeg-96219141e2b2a71fde4dca5505325d21f7cc10b7.tar.gz
mpegaudiodec: Use clearer pointer math
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavcodec/mpegaudiodec.c')
-rw-r--r--libavcodec/mpegaudiodec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c
index 1b50f9fd92..cd7b7f5053 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++) {