avfilter/vf_noise: Avoid cast

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-10-13 12:20:32 +02:00
parent ece623b1b3
commit 214b52df43
2 changed files with 2 additions and 2 deletions

View File

@@ -213,7 +213,7 @@ static void noise(uint8_t *dst, const uint8_t *src,
int shift = p->rand_shift[ix]; int shift = p->rand_shift[ix];
if (flags & NOISE_AVERAGED) { if (flags & NOISE_AVERAGED) {
n->line_noise_avg(dst + x, src + x, w, (const int8_t**)p->prev_shift[ix]); n->line_noise_avg(dst + x, src + x, w, p->prev_shift[ix]);
p->prev_shift[ix][shift % 3] = noise + shift; p->prev_shift[ix][shift % 3] = noise + shift;
} else { } else {
n->line_noise(dst + x, src + x, noise, w, shift); n->line_noise(dst + x, src + x, noise, w, shift);

View File

@@ -40,7 +40,7 @@ typedef struct FilterParams {
AVLFG lfg; AVLFG lfg;
int seed; int seed;
int8_t *noise; int8_t *noise;
int8_t *prev_shift[MAX_RES][3]; const int8_t *prev_shift[MAX_RES][3];
int rand_shift[MAX_RES]; int rand_shift[MAX_RES];
int rand_shift_init; int rand_shift_init;
} FilterParams; } FilterParams;