aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-29 15:33:03 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-31 23:37:53 +0100
commit4425aa4be5d6e2307d8756642621452e0abc7c1b (patch)
tree083130bf35c2563b96dc292c1d48dc6f7c2edb05 /libavcodec
parentbd46e3ee71c20685b54778d0f5d845e1d9449a1a (diff)
downloadffmpeg-4425aa4be5d6e2307d8756642621452e0abc7c1b.tar.gz
avcodec/dirac_arith: Make table only used here static
Reviewed-by: Lynne <dev@lynne.ee> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/dirac_arith.c6
-rw-r--r--libavcodec/dirac_arith.h1
2 files changed, 3 insertions, 4 deletions
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)