You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
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 58b6594b01
)
This commit is contained in:
@ -187,7 +187,7 @@ static int headphone_convolute(AVFilterContext *ctx, void *arg, int jobnr, int n
|
|||||||
const int in_channels = in->channels;
|
const int in_channels = in->channels;
|
||||||
const int buffer_length = s->buffer_length;
|
const int buffer_length = s->buffer_length;
|
||||||
const uint32_t modulo = (uint32_t)buffer_length - 1;
|
const uint32_t modulo = (uint32_t)buffer_length - 1;
|
||||||
float *buffer[16];
|
float *buffer[64];
|
||||||
int wr = *write;
|
int wr = *write;
|
||||||
int read;
|
int read;
|
||||||
int i, l;
|
int i, l;
|
||||||
|
Reference in New Issue
Block a user