comparison libmpcodecs/vf_pp.c @ 5514:127f2a84e933

accept -pp value from args
author arpi
date Sun, 07 Apr 2002 03:32:36 +0000
parents 73696051e3ce
children 04a40454bdbb
comparison
equal deleted inserted replaced
5513:73696051e3ce 5514:127f2a84e933
59 //===========================================================================// 59 //===========================================================================//
60 60
61 extern int divx_quality; 61 extern int divx_quality;
62 62
63 static int open(vf_instance_t *vf, char* args){ 63 static int open(vf_instance_t *vf, char* args){
64 char *endptr;
64 vf->get_image=get_image; 65 vf->get_image=get_image;
65 vf->put_image=put_image; 66 vf->put_image=put_image;
66 vf->priv=malloc(sizeof(struct vf_priv_s)); 67 vf->priv=malloc(sizeof(struct vf_priv_s));
68 if(args){
69 vf->priv->pp=strtol(args, &endptr, 0);
70 if(!(*endptr)) return 1;
71 }
67 vf->priv->pp=divx_quality; 72 vf->priv->pp=divx_quality;
68 return 1; 73 return 1;
69 } 74 }
70 75
71 vf_info_t vf_info_pp = { 76 vf_info_t vf_info_pp = {