Commit b79c7d45 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Ronald S. Bultje

Remove unneeded 'once' guards

This is guarateed by pthread_once now
parent f53749e1
......@@ -3105,9 +3105,7 @@ static void untriangle(uint8_t *dst, const uint8_t *src, const int sz) {
}
void av1_init_qm_tables(void) {
static int done = 0;
if (done) return;
done = 1;
// This function is guaranteed to be called only once by dav1d_init
for (int i = 0; i < 15; i++)
for (int j = 0; j < 2; j++) {
......
......@@ -214,9 +214,7 @@ static void fill2d_16x2(uint8_t *dst, const int w, const int h,
}
void av1_init_wedge_masks(void) {
static int done = 0;
if (done) return;
done = 1;
// This function is guaranteed to be called only once by dav1d_init
enum WedgeMasterLineType {
WEDGE_MASTER_LINE_ODD,
......@@ -315,9 +313,7 @@ static void build_nondc_ii_masks(uint8_t *const mask_v,
}
void av1_init_interintra_masks(void) {
static int done = 0;
if (done) return;
done = 1;
// This function is guaranteed to be called only once by dav1d_init
memset(ii_dc_mask, 32, 32 * 32);
#define set(a) a[II_VERT_PRED - 1], a[II_HOR_PRED - 1], a[II_SMOOTH_PRED - 1]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment