[Mplayer-cvslog] CVS: main/libmpcodecs vf_pp.c,1.14,1.15

Michael Niedermayer michael at mplayerhq.hu
Tue Oct 29 21:12:26 CET 2002


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv20455/libmpcodecs

Modified Files:
	vf_pp.c 
Log Message:
cleanup


Index: vf_pp.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_pp.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- vf_pp.c	29 Oct 2002 18:51:51 -0000	1.14
+++ vf_pp.c	29 Oct 2002 20:12:07 -0000	1.15
@@ -2,6 +2,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <inttypes.h>
+#include <errno.h>
 
 #include "../config.h"
 #include "../mp_msg.h"
@@ -171,6 +172,29 @@
     
     vf->priv->pp=GET_PP_QUALITY_MAX; //divx_quality;
     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 = {




More information about the MPlayer-cvslog mailing list