[FFmpeg-cvslog] avcodec/mpegaudio_tablegen: Add (), fix fate

Michael Niedermayer git at videolan.org
Wed Dec 2 04:38:01 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Wed Dec  2 03:42:44 2015 +0100| [e1057babdfb01c53e40a3f68edcc59e1bdad7121] | committer: Michael Niedermayer

avcodec/mpegaudio_tablegen: Add (), fix fate

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavcodec/mpegaudio_tablegen.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/mpegaudio_tablegen.h b/libavcodec/mpegaudio_tablegen.h
index 1b27314..0b0ea40 100644
--- a/libavcodec/mpegaudio_tablegen.h
+++ b/libavcodec/mpegaudio_tablegen.h
@@ -62,7 +62,7 @@ static av_cold void mpegaudio_tableinit(void)
         double f, fm;
         int e, m;
         double value = i / 4;
-        if (i & 3 == 0)
+        if ((i & 3) == 0)
             pow43_val = value / IMDCT_SCALAR * cbrt(value);
         f  = pow43_val * exp2_lut[i & 3];
         fm = frexp(f, &e);
@@ -74,7 +74,7 @@ static av_cold void mpegaudio_tableinit(void)
         table_4_3_exp[i]   = -e;
     }
     for (exponent = 0; exponent < 512; exponent++) {
-        if (exponent && exponent & 3 == 0)
+        if (exponent && (exponent & 3) == 0)
             exp2_base *= 2;
         exp2_val = exp2_base * exp2_lut[exponent & 3] / IMDCT_SCALAR;
         for (value = 0; value < 16; value++) {



More information about the ffmpeg-cvslog mailing list