mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-05 14:30:00 +01:00
avfilter/vf_noise: Avoid cast
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user