[MPlayer-cvslog] CVS: main/libmpcodecs ve_lavc.c,1.125,1.126

Corey Hickey syncmail at mplayerhq.hu
Sun Jan 22 22:02:17 CET 2006


CVS change done by Corey Hickey

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

Modified Files:
	ve_lavc.c 
Log Message:
support libavcodec's new sc_factor parameter

Original idea from Michael; patch by me.


Index: ve_lavc.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_lavc.c,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -r1.125 -r1.126
--- ve_lavc.c	10 Jan 2006 11:09:02 -0000	1.125
+++ ve_lavc.c	22 Jan 2006 21:02:14 -0000	1.126
@@ -158,6 +158,7 @@
 static int lavc_param_turbo = 0;
 static int lavc_param_brd_scale = 0;
 static int lavc_param_bidir_refine = 0;
+static int lavc_param_sc_factor = 1;
 
 
 char *lavc_param_acodec = "mp2";
@@ -314,6 +315,7 @@
 	{"turbo", &lavc_param_turbo, CONF_TYPE_FLAG, 0, 0, 1, NULL},
 	{"brd_scale", &lavc_param_brd_scale, CONF_TYPE_INT, CONF_RANGE, 0, 10, NULL},
 	{"bidir_refine", &lavc_param_bidir_refine, CONF_TYPE_INT, CONF_RANGE, 0, 4, NULL},
+	{"sc_factor", &lavc_param_sc_factor, CONF_TYPE_INT, CONF_RANGE, 1, INT_MAX, NULL},
 	{NULL, NULL, 0, 0, 0, 0, NULL}
 };
 #endif
@@ -628,6 +630,7 @@
     lavc_venc_context->prediction_method= lavc_param_prediction_method;
     lavc_venc_context->brd_scale = lavc_param_brd_scale;
     lavc_venc_context->bidir_refine = lavc_param_bidir_refine;
+    lavc_venc_context->scenechange_factor = lavc_param_sc_factor;
     switch(lavc_param_format)
     {
 	case IMGFMT_YV12:




More information about the MPlayer-cvslog mailing list