[MPlayer-cvslog] CVS: main/libmpcodecs ve_lavc.c,1.109,1.110

Richard Felker CVS syncmail at mplayerhq.hu
Thu Feb 24 03:31:43 CET 2005


CVS change done by Richard Felker CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv14657/libmpcodecs

Modified Files:
	ve_lavc.c 
Log Message:
100l to michael :))))
vi_qoffset/vb_qoffset have been broken ever since the qp2lambda stuff
went in, which is a LONG time ago.....


Index: ve_lavc.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_lavc.c,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -r1.109 -r1.110
--- ve_lavc.c	23 Feb 2005 00:10:26 -0000	1.109
+++ ve_lavc.c	24 Feb 2005 02:31:41 -0000	1.110
@@ -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;




More information about the MPlayer-cvslog mailing list