diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2019-10-26 21:23:24 +0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-10-29 16:20:33 +0100 |
commit | e1c4ce4761fc5cbc904bca8e802fdf65211a6a0a (patch) | |
tree | 0cc638cfcb77be75b477316727e74a63fcfdfbc9 /libavfilter/asrc_anoisesrc.c | |
parent | 069be4aa5ddce4479b18896d80a852b144e680df (diff) | |
download | ffmpeg-e1c4ce4761fc5cbc904bca8e802fdf65211a6a0a.tar.gz |
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>
Diffstat (limited to 'libavfilter/asrc_anoisesrc.c')
-rw-r--r-- | libavfilter/asrc_anoisesrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/asrc_anoisesrc.c b/libavfilter/asrc_anoisesrc.c index 78f0af4fde..cedadde6c9 100644 --- a/libavfilter/asrc_anoisesrc.c +++ b/libavfilter/asrc_anoisesrc.c @@ -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; |