]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/af_volume.c
Makefile: disable compiling avconv by default.
[ffmpeg] / libavfilter / af_volume.c
index 74e0bbb36b8c5d4716edc6cfdd0d317fca5bc188..a869b44253bb608d289995435c4ecaad38cd422b 100644 (file)
@@ -49,7 +49,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
             if (!strcmp(tail, "dB")) {
                 /* consider the argument an adjustement in decibels */
                 if (!strcmp(tail, "dB")) {
-                    d = exp10(d/20);
+                    d = pow(10,d/20);
                 }
             } else {
                 /* parse the argument as an expression */
@@ -179,13 +179,13 @@ AVFilter avfilter_af_volume = {
     .priv_size      = sizeof(VolumeContext),
     .init           = init,
 
-    .inputs  = (AVFilterPad[])  {{ .name           = "default",
+    .inputs  = (const AVFilterPad[])  {{ .name     = "default",
                                    .type           = AVMEDIA_TYPE_AUDIO,
                                    .filter_samples = filter_samples,
                                    .min_perms      = AV_PERM_READ|AV_PERM_WRITE},
                                  { .name = NULL}},
 
-    .outputs = (AVFilterPad[])  {{ .name           = "default",
+    .outputs = (const AVFilterPad[])  {{ .name     = "default",
                                    .type           = AVMEDIA_TYPE_AUDIO, },
                                  { .name = NULL}},
 };