diff mbox series

[FFmpeg-devel,25/30] avcodec/dirac_arith: Make table only used here static

Message ID 20201230233157.1055287-25-andreas.rheinhardt@gmail.com
State Accepted
Commit 4425aa4be5d6e2307d8756642621452e0abc7c1b
Headers show
Series [FFmpeg-devel,01/30] avcodec/opustab: Make array static
Related show

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 Dec. 30, 2020, 11:31 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavcodec/dirac_arith.c | 6 +++---
 libavcodec/dirac_arith.h | 1 -
 2 files changed, 3 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/dirac_arith.c b/libavcodec/dirac_arith.c
index 36142fe198..69b6280230 100644
--- a/libavcodec/dirac_arith.c
+++ b/libavcodec/dirac_arith.c
@@ -28,7 +28,7 @@ 
 #include "dirac_arith.h"
 
 
-const uint16_t ff_dirac_prob[256] = {
+static const uint16_t dirac_prob[256] = {
     0,    2,    5,    8,    11,   15,   20,   24,
     29,   35,   41,   47,   53,   60,   67,   74,
     82,   89,   97,   106,  114,  123,  132,  141,
@@ -88,8 +88,8 @@  av_cold void ff_dirac_init_arith_tables(void)
     int i;
 
     for (i = 0; i < 256; i++) {
-        ff_dirac_prob_branchless[i][0] =  ff_dirac_prob[255-i];
-        ff_dirac_prob_branchless[i][1] = -ff_dirac_prob[i];
+        ff_dirac_prob_branchless[i][0] =  dirac_prob[255-i];
+        ff_dirac_prob_branchless[i][1] = -dirac_prob[i];
     }
 }
 
diff --git a/libavcodec/dirac_arith.h b/libavcodec/dirac_arith.h
index 79526a7ca3..350a58fca6 100644
--- a/libavcodec/dirac_arith.h
+++ b/libavcodec/dirac_arith.h
@@ -86,7 +86,6 @@  typedef struct {
 } DiracArith;
 
 extern const uint8_t ff_dirac_next_ctx[DIRAC_CTX_COUNT];
-extern const uint16_t ff_dirac_prob[256];
 extern int16_t ff_dirac_prob_branchless[256][2];
 
 static inline void renorm(DiracArith *c)