1
mirror of https://github.com/mpv-player/mpv synced 2025-01-05 03:06:28 +01:00

accept -pp value from args

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5515 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-04-07 03:32:36 +00:00
parent 5646c8cc3b
commit e3ae844c0e

View File

@ -61,9 +61,14 @@ static void put_image(struct vf_instance_s* vf, mp_image_t *mpi){
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;
}