avfilter/af_adynamicequalizer: always start filtering from unit gain
This commit is contained in:
@@ -43,6 +43,7 @@ typedef struct ChannelContext {
|
||||
float fstate_float[2];
|
||||
float gain_float;
|
||||
float threshold_float;
|
||||
int init;
|
||||
} ChannelContext;
|
||||
|
||||
typedef struct AudioDynamicEqualizerContext {
|
||||
@@ -132,6 +133,12 @@ static int config_input(AVFilterLink *inlink)
|
||||
break;
|
||||
}
|
||||
|
||||
for (int ch = 0; ch < inlink->ch_layout.nb_channels; ch++) {
|
||||
ChannelContext *cc = &s->cc[ch];
|
||||
cc->gain_float = 1.f;
|
||||
cc->gain_double = 1.0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user