diff mbox series

[FFmpeg-devel,06/35] avcodec/proresenc_anatoliy: remove duplicated define

Message ID 20231211014429.1841681-7-u@pkh.me
State Accepted
Commit 9f547e2f15174357a484c51024f9dd09c7c037cf
Headers show
Series [FFmpeg-devel,01/35] avcodec/proresenc_kostya: remove an unnecessary parenthesis level in MAKE_CODE() macro | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Clément Bœsch Dec. 11, 2023, 1:35 a.m. UTC
This is already defined in proresdata.h
---
 libavcodec/proresenc_anatoliy.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Stefano Sabatini Dec. 16, 2023, 4:32 p.m. UTC | #1
On date Monday 2023-12-11 02:35:07 +0100, Clément Bœsch wrote:
> This is already defined in proresdata.h
> ---
>  libavcodec/proresenc_anatoliy.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c
> index 6b2e513bed..c6f49be9b8 100644
> --- a/libavcodec/proresenc_anatoliy.c
> +++ b/libavcodec/proresenc_anatoliy.c
> @@ -266,8 +266,6 @@ static av_always_inline int get_level(int val)
>      return (val ^ sign) - sign;
>  }
>  
> -#define FIRST_DC_CB 0xB8
> -
>  static const uint8_t dc_codebook[7] = { 0x04, 0x28, 0x28, 0x4D, 0x4D, 0x70, 0x70};

LGTM.
diff mbox series

Patch

diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c
index 6b2e513bed..c6f49be9b8 100644
--- a/libavcodec/proresenc_anatoliy.c
+++ b/libavcodec/proresenc_anatoliy.c
@@ -266,8 +266,6 @@  static av_always_inline int get_level(int val)
     return (val ^ sign) - sign;
 }
 
-#define FIRST_DC_CB 0xB8
-
 static const uint8_t dc_codebook[7] = { 0x04, 0x28, 0x28, 0x4D, 0x4D, 0x70, 0x70};
 
 static void encode_dc_coeffs(PutBitContext *pb, int16_t *in,