# HG changeset patch # User rfelker # Date 1109212301 0 # Node ID e1bf5e07962f23bc9dd2ed2a4d02cdce9075482a # Parent 13feacc885a765c247d7d9f160be55192111c7a8 100l to michael :)))) vi_qoffset/vb_qoffset have been broken ever since the qp2lambda stuff went in, which is a LONG time ago..... diff -r 13feacc885a7 -r e1bf5e07962f libmpcodecs/ve_lavc.c --- a/libmpcodecs/ve_lavc.c Thu Feb 24 01:55:18 2005 +0000 +++ b/libmpcodecs/ve_lavc.c Thu Feb 24 02:31:41 2005 +0000 @@ -372,14 +372,14 @@ lavc_venc_context->b_quant_factor= lavc_param_vb_qfactor; lavc_venc_context->rc_strategy= lavc_param_vrc_strategy; lavc_venc_context->b_frame_strategy= lavc_param_vb_strategy; - lavc_venc_context->b_quant_offset= lavc_param_vb_qoffset; + lavc_venc_context->b_quant_offset= (int)(FF_QP2LAMBDA * lavc_param_vb_qoffset + 0.5); lavc_venc_context->luma_elim_threshold= lavc_param_luma_elim_threshold; lavc_venc_context->chroma_elim_threshold= lavc_param_chroma_elim_threshold; lavc_venc_context->rtp_payload_size= lavc_param_packet_size; if(lavc_param_packet_size )lavc_venc_context->rtp_mode=1; lavc_venc_context->strict_std_compliance= lavc_param_strict; lavc_venc_context->i_quant_factor= lavc_param_vi_qfactor; - lavc_venc_context->i_quant_offset= lavc_param_vi_qoffset; + lavc_venc_context->i_quant_offset= (int)(FF_QP2LAMBDA * lavc_param_vi_qoffset + 0.5); lavc_venc_context->rc_qsquish= lavc_param_rc_qsquish; lavc_venc_context->rc_qmod_amp= lavc_param_rc_qmod_amp; lavc_venc_context->rc_qmod_freq= lavc_param_rc_qmod_freq;