Set rc_qsquish=1 in AVContext when b_strict is used. This uses a nice continous funct...
authorJean-Paul Saman <jpsaman@videolan.org>
Wed, 19 Mar 2008 15:40:15 +0000 (16:40 +0100)
committerJean-Paul Saman <jpsaman@videolan.org>
Tue, 25 Mar 2008 11:02:39 +0000 (12:02 +0100)
modules/codec/ffmpeg/encoder.c

index b74de24..49960e6 100644 (file)
@@ -473,6 +473,7 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
 
         if ( p_sys->b_strict_rc )
         {
+            p_context->rc_qsquish = 1.0;
             p_context->rc_max_rate = p_enc->fmt_out.i_bitrate;
             p_context->rc_min_rate = p_enc->fmt_out.i_bitrate;
             p_context->rc_buffer_size = p_sys->i_rc_buffer_size;