for (j = 0; j < in->nb_samples; j++) {
dst[2 * j] += fft_acc[j].re * fft_scale;
+ if (fabsf(dst[2 * j]) > 1)
+ n_clippings[0]++;
}
for (j = 0; j < ir_len - 1; j++) {
*(ringbuffer + write_pos) += fft_acc[in->nb_samples + j].re * fft_scale;
}
- for (i = 0; i < out->nb_samples; i++) {
- if (fabsf(dst[0]) > 1) {
- n_clippings[0]++;
- }
-
- dst += 2;
- }
-
*write = wr;
return 0;
{ NULL }
};
-AVFilter ff_af_headphone = {
+const AVFilter ff_af_headphone = {
.name = "headphone",
.description = NULL_IF_CONFIG_SMALL("Apply headphone binaural spatialization with HRTFs in additional streams."),
.priv_size = sizeof(HeadphoneContext),