changeset 5514:127f2a84e933

accept -pp value from args
author arpi
date Sun, 07 Apr 2002 03:32:36 +0000
parents 73696051e3ce
children 0cdc1388f02f
files libmpcodecs/vf_pp.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_pp.c	Sun Apr 07 03:25:25 2002 +0000
+++ b/libmpcodecs/vf_pp.c	Sun Apr 07 03:32:36 2002 +0000
@@ -61,9 +61,14 @@
 extern int divx_quality;
 
 static int open(vf_instance_t *vf, char* args){
+    char *endptr;
     vf->get_image=get_image;
     vf->put_image=put_image;
     vf->priv=malloc(sizeof(struct vf_priv_s));
+    if(args){
+	vf->priv->pp=strtol(args, &endptr, 0);
+	if(!(*endptr)) return 1;
+    }
     vf->priv->pp=divx_quality;
     return 1;
 }