diff options
author | corey <corey@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-01-22 21:02:14 +0000 |
---|---|---|
committer | corey <corey@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-01-22 21:02:14 +0000 |
commit | 9e0acc3d2ed87bd8055607f4a0b4f7af688359c3 (patch) | |
tree | b19282c11786120dc2281b636da2fda4e7268f1d /libmpcodecs | |
parent | 65f186f4d08b5543a809261c0e970c00e860b22f (diff) |
support libavcodec's new sc_factor parameter
Original idea from Michael; patch by me.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17465 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/ve_lavc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libmpcodecs/ve_lavc.c b/libmpcodecs/ve_lavc.c index 16a55756af..8a9f10c00a 100644 --- a/libmpcodecs/ve_lavc.c +++ b/libmpcodecs/ve_lavc.c @@ -158,6 +158,7 @@ static int lavc_param_threads= 1; 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 @@ m_option_t lavcopts_conf[]={ {"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 @@ static int config(struct vf_instance_s* vf, 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: |