changeset 34563:e659a561af75

Fix format string for -a52drc option.
author reimar
date Fri, 03 Feb 2012 20:33:32 +0000
parents fe172cd7b8e8
children 96019b1174b8
files libmpcodecs/ad_ffmpeg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_ffmpeg.c	Fri Feb 03 14:31:59 2012 +0000
+++ b/libmpcodecs/ad_ffmpeg.c	Fri Feb 03 20:33:32 2012 +0000
@@ -106,7 +106,7 @@
     lavc_context = avcodec_alloc_context3(lavc_codec);
     sh_audio->context=lavc_context;
 
-    snprintf(tmpstr, sizeof(tmpstr), "%i", drc_level);
+    snprintf(tmpstr, sizeof(tmpstr), "%f", drc_level);
     av_dict_set(&opts, "drc_scale", tmpstr, 0);
     lavc_context->sample_rate = sh_audio->samplerate;
     lavc_context->bit_rate = sh_audio->i_bps * 8;