History

avfilter/af_sofalizer: allow up to 64 channels

Paul B Mahol committed 6 years ago

Commit f7fd2051 parent aa125fd1 file · +4 −4Browse files

Unified · Split

libavfilter/af_sofalizer.c+4−4
@@ -255,11 +255,11 @@ static int get_speaker_pos(AVFilterContext *ctx, · 254 unmodified lines
255255 {
256256 struct SOFAlizerContext *s = ctx->priv;
257257 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 };
260260 int m, ch, n_conv = ctx->inputs[0]->channels; /* get no. input channels */
261261
262− if (n_conv > 16)
262+ if (n_conv < 0 || n_conv > 64)
263263 return AVERROR(EINVAL);
264264
265265 s->lfe_channel = -1;
@@ -360,7 +360,7 @@ static int sofalizer_convolute(AVFilterContext *ctx, void *arg, int jobnr, int n · 94 unmodified lines
360360 const int buffer_length = s->buffer_length;
361361 /* -1 for AND instead of MODULO (applied to powers of 2): */
362362 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 */
364364 int wr = *write;
365365 int read;
366366 int i, l;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t