Fix -Werror=parentheses error
authorThierry Foucu <tfoucu@gmail.com>
Tue, 15 Nov 2016 19:09:52 +0000 (11:09 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 16 Nov 2016 01:39:57 +0000 (02:39 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/internal.h

index 35b9630..c92dba4 100644 (file)
@@ -262,7 +262,7 @@ static av_always_inline int64_t ff_samples_to_time_base(AVCodecContext *avctx,
 static av_always_inline float ff_exp2fi(int x) {
     /* Normal range */
     if (-126 <= x && x <= 128)
-        return av_int2float(x+127 << 23);
+        return av_int2float((x+127) << 23);
     /* Too large */
     else if (x > 128)
         return INFINITY;