diff mbox series

[FFmpeg-devel,32/32] avcodec/dirac_vlc: Make ff_dirac_golomb_lut static

Message ID 20210220050107.2572205-3-andreas.rheinhardt@gmail.com
State Accepted
Commit 980b5c3bb5ffc94644d4e82f5bf98e5b83f932d7
Headers show
Series [FFmpeg-devel,01/29] configure, libavcodec/Makefile: Remove spurious CAF demuxer dependencies | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Andreas Rheinhardt Feb. 20, 2021, 5:01 a.m. UTC
Only used here.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavcodec/dirac_vlc.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Lynne Feb. 20, 2021, 1:17 p.m. UTC | #1
Feb 20, 2021, 06:01 by andreas.rheinhardt@gmail.com:

> Only used here.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
>

LGTM
diff mbox series

Patch

diff --git a/libavcodec/dirac_vlc.c b/libavcodec/dirac_vlc.c
index 2c07440df0..c5a0371dae 100644
--- a/libavcodec/dirac_vlc.c
+++ b/libavcodec/dirac_vlc.c
@@ -45,7 +45,7 @@  typedef struct LUTState {
     uint16_t  state;     /* Expected state for the next byte */
 } LUTState;
 
-const DECLARE_ALIGNED(32, LUTState, ff_dirac_golomb_lut)[1024] = {
+static const DECLARE_ALIGNED(32, LUTState, dirac_golomb_lut)[1024] = {
     { +16,  0,  0,  0,  0, 5, +1, 0,  0, STATE_FOLLOW },
     { +17,  0,  0,  0,  0, 5, +1, 0,  0, STATE_FOLLOW },
     {  +8,  0,  0,  0,  0, 4, +1, 1,  0,  STATE_START },
@@ -1089,13 +1089,13 @@  const DECLARE_ALIGNED(32, LUTState, ff_dirac_golomb_lut)[1024] = {
         dst += lut.num;                                \
         if (dst >= last)                               \
             return coeffs;                             \
-        lut = ff_dirac_golomb_lut[lut.state + *buf++]; \
+        lut = dirac_golomb_lut[lut.state + *buf++];    \
     } while (0)
 
 int ff_dirac_golomb_read_16bit(const uint8_t *buf, int bytes,
                                uint8_t *_dst, int coeffs)
 {
-    LUTState lut = ff_dirac_golomb_lut[*buf++];
+    LUTState lut = dirac_golomb_lut[*buf++];
     int16_t *dst = (int16_t *)_dst, *last = dst + coeffs;
     uint16_t val = 0;
 
@@ -1115,7 +1115,7 @@  int ff_dirac_golomb_read_16bit(const uint8_t *buf, int bytes,
 int ff_dirac_golomb_read_32bit(const uint8_t *buf, int bytes,
                                uint8_t *_dst, int coeffs)
 {
-    LUTState lut = ff_dirac_golomb_lut[*buf++];
+    LUTState lut = dirac_golomb_lut[*buf++];
     int32_t *dst = (int32_t *)_dst, *last = dst + coeffs;
     uint32_t val = 0;