You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avfilter/af_headphone: Remove delay fields
They seem to exist for an option that was never implemented. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
@@ -79,8 +79,6 @@ typedef struct HeadphoneContext {
|
|||||||
struct headphone_inputs {
|
struct headphone_inputs {
|
||||||
AVFrame *frame;
|
AVFrame *frame;
|
||||||
int ir_len;
|
int ir_len;
|
||||||
int delay_l;
|
|
||||||
int delay_r;
|
|
||||||
int eof;
|
int eof;
|
||||||
} *in;
|
} *in;
|
||||||
uint64_t mapping[64];
|
uint64_t mapping[64];
|
||||||
@@ -457,8 +455,6 @@ static int convert_coeffs(AVFilterContext *ctx, AVFilterLink *inlink)
|
|||||||
|
|
||||||
for (i = 0; i < s->nb_inputs - 1; i++) {
|
for (i = 0; i < s->nb_inputs - 1; i++) {
|
||||||
int len = s->in[i + 1].ir_len;
|
int len = s->in[i + 1].ir_len;
|
||||||
int delay_l = s->in[i + 1].delay_l;
|
|
||||||
int delay_r = s->in[i + 1].delay_r;
|
|
||||||
float *ptr;
|
float *ptr;
|
||||||
|
|
||||||
ret = ff_inlink_consume_samples(ctx->inputs[i + 1], len, len, &s->in[i + 1].frame);
|
ret = ff_inlink_consume_samples(ctx->inputs[i + 1], len, len, &s->in[i + 1].frame);
|
||||||
@@ -490,8 +486,8 @@ static int convert_coeffs(AVFilterContext *ctx, AVFilterLink *inlink)
|
|||||||
|
|
||||||
offset = idx * n_fft;
|
offset = idx * n_fft;
|
||||||
for (j = 0; j < len; j++) {
|
for (j = 0; j < len; j++) {
|
||||||
fft_in_l[delay_l + j].re = ptr[j * 2 ] * gain_lin;
|
fft_in_l[j].re = ptr[j * 2 ] * gain_lin;
|
||||||
fft_in_r[delay_r + j].re = ptr[j * 2 + 1] * gain_lin;
|
fft_in_r[j].re = ptr[j * 2 + 1] * gain_lin;
|
||||||
}
|
}
|
||||||
|
|
||||||
av_fft_permute(s->fft[0], fft_in_l);
|
av_fft_permute(s->fft[0], fft_in_l);
|
||||||
@@ -529,8 +525,8 @@ static int convert_coeffs(AVFilterContext *ctx, AVFilterLink *inlink)
|
|||||||
|
|
||||||
offset = idx * n_fft;
|
offset = idx * n_fft;
|
||||||
for (j = 0; j < len; j++) {
|
for (j = 0; j < len; j++) {
|
||||||
fft_in_l[delay_l + j].re = ptr[j * N + I ] * gain_lin;
|
fft_in_l[j].re = ptr[j * N + I ] * gain_lin;
|
||||||
fft_in_r[delay_r + j].re = ptr[j * N + I + 1] * gain_lin;
|
fft_in_r[j].re = ptr[j * N + I + 1] * gain_lin;
|
||||||
}
|
}
|
||||||
|
|
||||||
av_fft_permute(s->fft[0], fft_in_l);
|
av_fft_permute(s->fft[0], fft_in_l);
|
||||||
|
Reference in New Issue
Block a user