[FFmpeg-devel] [PATCH 01/35] avcodec/proresenc_kostya: remove an unnecessary parenthesis level in MAKE_CODE() macro

Stefano Sabatini stefasab at gmail.com
Tue Dec 12 08:53:45 EET 2023


On date Monday 2023-12-11 02:35:02 +0100, Clément Bœsch wrote:
> ---
>  libavcodec/proresenc_kostya.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/proresenc_kostya.c b/libavcodec/proresenc_kostya.c
> index 52fe5639b1..58fc340879 100644
> --- a/libavcodec/proresenc_kostya.c
> +++ b/libavcodec/proresenc_kostya.c
> @@ -429,7 +429,7 @@ static inline void encode_vlc_codeword(PutBitContext *pb, unsigned codebook, int
>  }
>  
>  #define GET_SIGN(x)  ((x) >> 31)
> -#define MAKE_CODE(x) ((((x)) * 2) ^ GET_SIGN(x))
> +#define MAKE_CODE(x) (((x) * 2) ^ GET_SIGN(x))

LGTM.


More information about the ffmpeg-devel mailing list