diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-08-26 10:11:38 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-27 07:21:00 +0100 |
commit | 4ec5d6896d2396f6a9f3dd558e393eeacc22dd6f (patch) | |
tree | 27848a9d352efe04ba03577911c2dd7f7e6f16da | |
parent | d5992cc1556380852e406f566f56dc250a993123 (diff) | |
download | ffmpeg-4ec5d6896d2396f6a9f3dd558e393eeacc22dd6f.tar.gz |
avfilter/af_headphone: Fix stack buffer overflow
The number of channels can be up to 64, not only 16.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit 58b6594b01e37ebf3daa2cb66183287a1f1b0a78)
-rw-r--r-- | libavfilter/af_headphone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_headphone.c b/libavfilter/af_headphone.c index 30e300b5e0..839cfaaed4 100644 --- a/libavfilter/af_headphone.c +++ b/libavfilter/af_headphone.c @@ -187,7 +187,7 @@ static int headphone_convolute(AVFilterContext *ctx, void *arg, int jobnr, int n const int in_channels = in->channels; const int buffer_length = s->buffer_length; const uint32_t modulo = (uint32_t)buffer_length - 1; - float *buffer[16]; + float *buffer[64]; int wr = *write; int read; int i, l; |