Video bitrate tolerance is advertised as kbits/sec in the help (not bits/sec).
authorAntoine Cellerier <dionoea@videolan.org>
Tue, 20 May 2008 08:05:33 +0000 (10:05 +0200)
committerAntoine Cellerier <dionoea@videolan.org>
Tue, 20 May 2008 08:23:05 +0000 (10:23 +0200)
modules/codec/ffmpeg/encoder.c

index 7dcfa61..f48d0ab 100644 (file)
@@ -298,7 +298,7 @@ int OpenEncoder( vlc_object_t *p_this )
     p_sys->i_b_frames = val.i_int;
 
     var_Get( p_enc, ENC_CFG_PREFIX "vt", &val );
-    p_sys->i_vtolerance = val.i_int;
+    p_sys->i_vtolerance = val.i_int * 1000;
 
     var_Get( p_enc, ENC_CFG_PREFIX "interlace", &val );
     p_sys->b_interlace = val.b_bool;