Ticket #12996: 0002-Fix-compiler-Wparentheses-error-message.patch

File 0002-Fix-compiler-Wparentheses-error-message.patch, 712 bytes (added by David Hampton <mythtv@…>, 3 years ago)

Fix for missing parentheses in math calculation.

  • mythtv/external/FFmpeg/libavcodec/internal.h

     mythtv/external/FFmpeg/libavcodec/internal.h | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/mythtv/external/FFmpeg/libavcodec/internal.h b/mythtv/external/FFmpeg/libavcodec/internal.h
    index dfc3f8d..0ac8de0 100644
    a b static av_always_inline int64_t ff_samples_to_time_base(AVCodecContext *avctx, 
    270270static av_always_inline float ff_exp2fi(int x) {
    271271    /* Normal range */
    272272    if (-126 <= x && x <= 128)
    273         return av_int2float(x+127 << 23);
     273        return av_int2float((x+127) << 23);
    274274    /* Too large */
    275275    else if (x > 128)
    276276        return INFINITY;