Unified · Split
| @@ -255,11 +255,11 @@ static int get_speaker_pos(AVFilterContext *ctx, · 254 unmodified lines | ||
| 255 | 255 | { |
| 256 | 256 | struct SOFAlizerContext *s = ctx->priv; |
| 257 | 257 | uint64_t channels_layout = ctx->inputs[0]->channel_layout; |
| 258 | − float azim[16] = { 0 }; | |
| 259 | − float elev[16] = { 0 }; | |
| 258 | + float azim[64] = { 0 }; | |
| 259 | + float elev[64] = { 0 }; | |
| 260 | 260 | int m, ch, n_conv = ctx->inputs[0]->channels; /* get no. input channels */ |
| 261 | 261 | |
| 262 | − if (n_conv > 16) | |
| 262 | + if (n_conv < 0 || n_conv > 64) | |
| 263 | 263 | return AVERROR(EINVAL); |
| 264 | 264 | |
| 265 | 265 | s->lfe_channel = -1; |
| @@ -360,7 +360,7 @@ static int sofalizer_convolute(AVFilterContext *ctx, void *arg, int jobnr, int n · 94 unmodified lines | ||
| 360 | 360 | const int buffer_length = s->buffer_length; |
| 361 | 361 | /* -1 for AND instead of MODULO (applied to powers of 2): */ |
| 362 | 362 | const uint32_t modulo = (uint32_t)buffer_length - 1; |
| 363 | − float *buffer[16]; /* holds ringbuffer for each input channel */ | |
| 363 | + float *buffer[64]; /* holds ringbuffer for each input channel */ | |
| 364 | 364 | int wr = *write; |
| 365 | 365 | int read; |
| 366 | 366 | int i, l; |