]> git.sesse.net Git - ffmpeg/commit
avfilter/asrc_anoisesrc: change color variable to int
authorLimin Wang <lance.lmwang@gmail.com>
Sat, 26 Oct 2019 13:23:24 +0000 (21:23 +0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 29 Oct 2019 15:20:33 +0000 (16:20 +0100)
commite1c4ce4761fc5cbc904bca8e802fdf65211a6a0a
tree0cc638cfcb77be75b477316727e74a63fcfdfbc9
parent069be4aa5ddce4479b18896d80a852b144e680df
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: Limin Wang <lance.lmwang@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/asrc_anoisesrc.c