summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-02-24 02:31:41 +0000
committerrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-02-24 02:31:41 +0000
commit55aa474d7e70016da5f36edd2251de1b476a50ba (patch)
tree26219d89b016b3fcaaa8324f2513c706e1dac31d /libmpcodecs
parent43e8637778728f6029bd98796381d994b7ae19bb (diff)
downloadmpv-55aa474d7e70016da5f36edd2251de1b476a50ba.tar.bz2
mpv-55aa474d7e70016da5f36edd2251de1b476a50ba.tar.xz
100l to michael :))))
vi_qoffset/vb_qoffset have been broken ever since the qp2lambda stuff went in, which is a LONG time ago..... git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14787 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/ve_lavc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpcodecs/ve_lavc.c b/libmpcodecs/ve_lavc.c
index 2555ef6fc2..c9a43974e8 100644
--- a/libmpcodecs/ve_lavc.c
+++ b/libmpcodecs/ve_lavc.c
@@ -372,14 +372,14 @@ static int config(struct vf_instance_s* vf,
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;