diff mbox

[FFmpeg-devel,3/3] Fix -Werror=parentheses error

Message ID 1479236992-12259-1-git-send-email-tfoucu@gmail.com
State Accepted
Headers show

Commit Message

Thierry Foucu Nov. 15, 2016, 7:09 p.m. UTC
---
 libavcodec/internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index 35b9630..c92dba4 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -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;