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:
parent
5646c8cc3b
commit
e3ae844c0e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user