[FFmpeg-cvslog] Fix -Werror=parentheses error

Thierry Foucu git at videolan.org
Wed Nov 16 03:44:36 EET 2016


ffmpeg | branch: master | Thierry Foucu <tfoucu at gmail.com> | Tue Nov 15 11:09:52 2016 -0800| [c512546689eb48c9ab4ece0a09619c18559b16c5] | committer: Michael Niedermayer

Fix -Werror=parentheses error

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

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

 libavcodec/internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list