summaryrefslogtreecommitdiff
path: root/libavfilter/af_headphone.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-08-26 10:11:38 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-09 13:46:13 +0200
commit58b6594b01e37ebf3daa2cb66183287a1f1b0a78 (patch)
tree3ab818d7cb83be8f33ed14fe35b1ff94f638b982 /libavfilter/af_headphone.c
parent14226be499d27935d54981f0a6e1b15fd65746cd (diff)
downloadffmpeg-58b6594b01e37ebf3daa2cb66183287a1f1b0a78.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>
Diffstat (limited to 'libavfilter/af_headphone.c')
-rw-r--r--libavfilter/af_headphone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_headphone.c b/libavfilter/af_headphone.c
index 99bdefbcff..42adc82df8 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;