[vlc-devel] commit: Set rc_qsquish=1 in AVContext when b_strict is used. This uses a nice continous function to limit qscale within qmin/qmax. ( Jean-Paul Saman )
git version control
git at videolan.org
Tue Mar 25 12:02:13 CET 2008
vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Wed Mar 19 16:40:15 2008 +0100| [6f6396b634e7b2e3269b3e17d672d46117898694]
Set rc_qsquish=1 in AVContext when b_strict is used. This uses a nice continous function to limit qscale within qmin/qmax.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6f6396b634e7b2e3269b3e17d672d46117898694
---
modules/codec/ffmpeg/encoder.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/codec/ffmpeg/encoder.c b/modules/codec/ffmpeg/encoder.c
index b74de24..49960e6 100644
--- a/modules/codec/ffmpeg/encoder.c
+++ b/modules/codec/ffmpeg/encoder.c
@@ -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;
More information about the vlc-devel
mailing list