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];
|
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);
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user