diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-12-28 19:36:10 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-12-28 19:36:10 +0000 |
commit | 65919f8c39e7a40e13061cf15c3b434d6d373863 (patch) | |
tree | ee81c62025cd41f54933fd09be265626a4afa810 /libmpcodecs/ve_lavc.c | |
parent | e15d0921d91aa0bdec977827f8c90b8c0ac4a133 (diff) | |
download | mpv-65919f8c39e7a40e13061cf15c3b434d6d373863.tar.bz2 mpv-65919f8c39e7a40e13061cf15c3b434d6d373863.tar.xz |
scenechange_threshold command line option patch by (Balatoni Denes <pnis at coder dot hu>)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11700 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/ve_lavc.c')
-rw-r--r-- | libmpcodecs/ve_lavc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libmpcodecs/ve_lavc.c b/libmpcodecs/ve_lavc.c index 16875db7ba..914915cd89 100644 --- a/libmpcodecs/ve_lavc.c +++ b/libmpcodecs/ve_lavc.c @@ -139,6 +139,7 @@ static int lavc_param_mv0= 0; static int lavc_param_noise_reduction= 0; static int lavc_param_qp_rd= 0; static int lavc_param_inter_threshold= 0; +static int lavc_param_sc_threshold= 0; static int lavc_param_ss= 0; static int lavc_param_top= -1; @@ -269,6 +270,7 @@ m_option_t lavcopts_conf[]={ {"ss", &lavc_param_ss, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_H263P_SLICE_STRUCT, NULL}, #endif {"inter_threshold", &lavc_param_inter_threshold, CONF_TYPE_INT, CONF_RANGE, -1000000, 1000000, NULL}, + {"sc_threshold", &lavc_param_sc_threshold, CONF_TYPE_INT, CONF_RANGE, -1000000, 1000000, NULL}, {"top", &lavc_param_top, CONF_TYPE_INT, CONF_RANGE, -1, 1, NULL}, {NULL, NULL, 0, 0, 0, 0, NULL} }; @@ -380,6 +382,9 @@ static int config(struct vf_instance_s* vf, lavc_venc_context->coder_type= lavc_param_coder; lavc_venc_context->context_model= lavc_param_context; #endif +#if LIBAVCODEC_BUILD >= 4680 + lavc_venc_context->scenechange_threshold= lavc_param_sc_threshold; +#endif #if LIBAVCODEC_BUILD >= 4690 lavc_venc_context->noise_reduction= lavc_param_noise_reduction; #endif |