[FFmpeg-cvslog] ffmpeg: use %f instead of %lf in volume args format printf.

Clément Bœsch git at videolan.org
Mon May 28 22:19:17 CEST 2012


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Mon May 28 22:17:01 2012 +0200| [d187e7616e32353e31c046cd095b19c96073bcad] | committer: Clément Bœsch

ffmpeg: use %f instead of %lf in volume args format printf.

%f refers to a double argument already.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d187e7616e32353e31c046cd095b19c96073bcad
---

 ffmpeg.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index d8396dc..c6297a1 100644
--- 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);
     }
 



More information about the ffmpeg-cvslog mailing list