ffmpeg: use %f instead of %lf in volume args format printf.
authorClément Bœsch <ubitux@gmail.com>
Mon, 28 May 2012 20:17:01 +0000 (22:17 +0200)
committerClément Bœsch <ubitux@gmail.com>
Mon, 28 May 2012 20:17:05 +0000 (22:17 +0200)
%f refers to a double argument already.

ffmpeg.c

index d8396dc..c6297a1 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -918,7 +918,7 @@ static int configure_audio_filters(FilterGraph *fg, AVFilterContext **in_filter,
     if (audio_volume != 256) {
         char args[256];
 
-        snprintf(args, sizeof(args), "%lf", audio_volume / 256.);
+        snprintf(args, sizeof(args), "%f", audio_volume / 256.);
         AUTO_INSERT_FILTER("-vol", "volume", args);
     }