[vlc-devel] [PATCH 07/24] [codec/dirac] default to taking target bitrate from sout-transcode-vb

davidf+nntp at woaf.net davidf+nntp at woaf.net
Thu Oct 30 12:29:36 CET 2008


From: David Flynn <davidf at rd.bbc.co.uk>


Signed-off-by: David Flynn <davidf at rd.bbc.co.uk>
---
 modules/codec/dirac.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/codec/dirac.c b/modules/codec/dirac.c
index 3119947..8d4131d 100644
--- a/modules/codec/dirac.c
+++ b/modules/codec/dirac.c
@@ -495,6 +495,8 @@ static int OpenEncoder( vlc_object_t *p_this )
     if( val.f_float > 0 )
         p_sys->ctx.enc_params.qf = val.f_float;
 
+    /* use bitrate from sout-transcode-vb in kbps */
+    p_sys->ctx.enc_params.trate = p_enc->fmt_out.i_bitrate;
     var_Get( p_enc, ENC_CFG_PREFIX ENC_TARGETRATE, &val );
     p_sys->ctx.enc_params.trate = val.i_int;
 
-- 
1.5.6.5




More information about the vlc-devel mailing list