Commit df2ce130 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/af_aemphasis: more declarations above

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent fdc94db3
...@@ -271,7 +271,6 @@ static int config_input(AVFilterLink *inlink) ...@@ -271,7 +271,6 @@ static int config_input(AVFilterLink *inlink)
//swap a1 b1, a2 b2 //swap a1 b1, a2 b2
if (s->type == 7 || s->type == 8) { if (s->type == 7 || s->type == 8) {
s->rc[0].use_brickw = 0;
double tau = (s->type == 7 ? 0.000050 : 0.000075); double tau = (s->type == 7 ? 0.000050 : 0.000075);
double f = 1.0 / (2 * M_PI * tau); double f = 1.0 / (2 * M_PI * tau);
double nyq = sr * 0.5; double nyq = sr * 0.5;
...@@ -287,6 +286,7 @@ static int config_input(AVFilterLink *inlink) ...@@ -287,6 +286,7 @@ static int config_input(AVFilterLink *inlink)
set_highshelf_rbj(&s->rc[0].r1, cfreq, q, 1. / gain, sr); set_highshelf_rbj(&s->rc[0].r1, cfreq, q, 1. / gain, sr);
else else
set_highshelf_rbj(&s->rc[0].r1, cfreq, q, gain, sr); set_highshelf_rbj(&s->rc[0].r1, cfreq, q, gain, sr);
s->rc[0].use_brickw = 0;
} else { } else {
s->rc[0].use_brickw = 1; s->rc[0].use_brickw = 1;
if (s->mode == 0) { // Reproduction if (s->mode == 0) { // Reproduction
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment