Commit e1c4ce47 authored by Limin Wang's avatar Limin Wang Committed by Michael Niedermayer

avfilter/asrc_anoisesrc: change color variable to int

Or it'll cause invalid color and s->filter is NULL.
Please reproduce it with below command on big endian system:
$ ./ffmpeg -f lavfi -i "anoisesrc=d=60:c=1:r=48000" -f s16le -c:a pcm_s16le  -f
null  -
Segmentation fault (core dumped)
Signed-off-by: 's avatarLimin Wang <lance.lmwang@gmail.com>
Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 069be4aa
......@@ -30,7 +30,7 @@ typedef struct ANoiseSrcContext {
int sample_rate;
double amplitude;
int64_t duration;
int64_t color;
int color;
int64_t seed;
int nb_samples;
......
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