summaryrefslogtreecommitdiffstats
path: root/mencoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'mencoder.c')
-rw-r--r--mencoder.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mencoder.c b/mencoder.c
index af0e7112d1..f26b94fa7f 100644
--- a/mencoder.c
+++ b/mencoder.c
@@ -179,6 +179,7 @@ int lame_param_mode=-1; // unset
int lame_param_padding=-1; // unset
int lame_param_br=-1; // unset
int lame_param_ratio=-1; // unset
+float lame_param_scale=-1; // unset
#endif
static int vo_w=0, vo_h=0;
@@ -751,6 +752,10 @@ if(lame_param_vbr){ // VBR:
}
if(lame_param_mode>=0) lame_set_mode(lame,lame_param_mode); // j-st
if(lame_param_ratio>0) lame_set_compression_ratio(lame,lame_param_ratio);
+if(lame_param_scale>0) {
+ printf("Setting audio input gain to %f\n", lame_param_scale);
+ lame_set_scale(lame,lame_param_scale);
+}
lame_init_params(lame);
if(verbose){
lame_print_config(lame);