mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +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 58b6594b01e37ebf3daa2cb66183287a1f1b0a78)
This commit is contained in:
parent
d5992cc155
commit
4ec5d6896d
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user