# HG changeset patch # User alex # Date 1062368307 0 # Node ID e40dee59f3ba684899f14d5593cee9a32aa36aa4 # Parent 8ec62402a8a31cd956a21057c86b57b807acfe28 remove read/revert hack diff -r 8ec62402a8a3 -r e40dee59f3ba cfg-common.h --- a/cfg-common.h Sun Aug 31 22:10:52 2003 +0000 +++ b/cfg-common.h Sun Aug 31 22:18:27 2003 +0000 @@ -158,7 +158,7 @@ {"divxq", "Option -divxq has been renamed to -pp (postprocessing), use -pp !\n", CONF_TYPE_PRINT, 0, 0, 0, NULL}, #ifdef USE_LIBAVCODEC - {"pp", readPPOpt, CONF_TYPE_FUNC_PARAM, 0, 0, 0, (cfg_default_func_t)&revertPPOpt}, + {"pp", &divx_quality, CONF_TYPE_INT, 0, 0, 0, NULL}, #endif #ifdef HAVE_ODIVX_POSTPROCESS {"oldpp", &use_old_pp, CONF_TYPE_FLAG, 0, 0, 1, NULL}, @@ -260,6 +260,7 @@ extern int softzoom; extern int flip; extern int vd_use_slices; +extern int divx_quality; /* from dec_audio, currently used for ac3surround decoder only */ extern int audio_output_channels; diff -r 8ec62402a8a3 -r e40dee59f3ba libmpcodecs/vf_pp.c --- a/libmpcodecs/vf_pp.c Sun Aug 31 22:10:52 2003 +0000 +++ b/libmpcodecs/vf_pp.c Sun Aug 31 22:18:27 2003 +0000 @@ -210,33 +210,10 @@ } #endif - vf->priv->pp=PP_QUALITY_MAX; //divx_quality; + vf->priv->pp=PP_QUALITY_MAX; return 1; } -int readPPOpt(void *conf, char *arg) -{ - int val; - - if(arg == NULL) - return -2; // ERR_MISSING_PARAM - errno = 0; - val = (int)strtol(arg,NULL,0); - if(errno != 0) - return -4; // What about include cfgparser.h and use ERR_* defines */ - if(val < 0) - return -3; // ERR_OUT_OF_RANGE - - divx_quality = val; - - return 1; -} - -void revertPPOpt(void *conf, char* opt) -{ - divx_quality=0; -} - vf_info_t vf_info_pp = { "postprocessing", "pp",