# HG changeset patch # User michael # Date 1067815305 0 # Node ID 222d2661f37362109297725e1dcd67d1f457a58e # Parent cd167d51a619f720ec8d6bf484d04dcd7c5de1db noise reduction diff -r cd167d51a619 -r 222d2661f373 libmpcodecs/ve_lavc.c --- a/libmpcodecs/ve_lavc.c Sun Nov 02 21:00:28 2003 +0000 +++ b/libmpcodecs/ve_lavc.c Sun Nov 02 23:21:45 2003 +0000 @@ -133,6 +133,7 @@ static char *lavc_param_inter_matrix = NULL; static int lavc_param_cbp= 0; static int lavc_param_mv0= 0; +static int lavc_param_noise_reduction= 0; #include "m_option.h" @@ -236,6 +237,7 @@ #if LIBAVCODEC_BUILD >= 4683 {"mv0", &lavc_param_mv0, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_MV0, NULL}, #endif + {"nr", &lavc_param_noise_reduction, CONF_TYPE_INT, CONF_RANGE, 0, 1000000, NULL}, {NULL, NULL, 0, 0, 0, 0, NULL} }; #endif @@ -346,6 +348,9 @@ lavc_venc_context->coder_type= lavc_param_coder; lavc_venc_context->context_model= lavc_param_context; #endif +#if LIBAVCODEC_BUILD >= 4690 + lavc_venc_context->noise_reduction= lavc_param_noise_reduction; +#endif #if LIBAVCODEC_BUILD >= 4675 if (lavc_param_intra_matrix) {