1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/dirac_arith: Make table only used here static

Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
Andreas Rheinhardt 2020-12-29 15:33:03 +01:00
parent bd46e3ee71
commit 4425aa4be5
2 changed files with 3 additions and 4 deletions

View File

@ -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];
}
}

View File

@ -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)