avfilter/vf_noise: Avoid cast

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt committed 2025-10-16 18:41:19 +02:00
1 parent ece623b1b3
commit 214b52df43
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -213,7 +213,7 @@ static void noise(uint8_t *dst, const uint8_t *src,
int shift = p->rand_shift[ix];
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;
} else {
n->line_noise(dst + x, src + x, noise, w, shift);
+1 -1
View File
@@ -40,7 +40,7 @@ typedef struct FilterParams {
AVLFG lfg;
int seed;
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_init;
} FilterParams;