]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/af_compand.c
avfilter/vaf_spectrumsynth: assert that variables are initialized by switch()
[ffmpeg] / libavfilter / af_compand.c
index 68b1fae81ede40edce1dba6bd21dceffd98ea028..b74636409c32b1b6cd174cbcd467218f380e0b2f 100644 (file)
@@ -506,7 +506,7 @@ static int config_output(AVFilterLink *outlink)
             cp->decay = 1.0 - exp(-1.0 / (sample_rate * cp->decay));
         else
             cp->decay = 1.0;
-        cp->volume = pow(10.0, s->initial_volume / 20);
+        cp->volume = ff_exp10(s->initial_volume / 20);
     }
 
     s->delay_samples = s->delay * sample_rate;