summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vf_scale.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-21 19:50:33 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-21 19:50:33 +0000
commit4198e9d45b98c7657cbddfdb74f5647e0e6c21de (patch)
tree6b70721d25ac903e415a30c972d7b9699b7160d5 /libmpcodecs/vf_scale.c
parent597c92ff7fc51392562b4985a145b2682b5758c7 (diff)
downloadmpv-4198e9d45b98c7657cbddfdb74f5647e0e6c21de.tar.bz2
mpv-4198e9d45b98c7657cbddfdb74f5647e0e6c21de.tar.xz
Remove unreachable parsing code: for filters that use the option parser,
the args argument to open will always be NULL and vf->priv will always be != NULL. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29945 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vf_scale.c')
-rw-r--r--libmpcodecs/vf_scale.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/libmpcodecs/vf_scale.c b/libmpcodecs/vf_scale.c
index d14b57a26a..a18b0ebe7e 100644
--- a/libmpcodecs/vf_scale.c
+++ b/libmpcodecs/vf_scale.c
@@ -508,25 +508,6 @@ static int open(vf_instance_t *vf, char* args){
vf->query_format=query_format;
vf->control= control;
vf->uninit=uninit;
- if(!vf->priv) {
- vf->priv=malloc(sizeof(struct vf_priv_s));
- // TODO: parse args ->
- vf->priv->ctx=NULL;
- vf->priv->ctx2=NULL;
- vf->priv->w=
- vf->priv->h=-1;
- vf->priv->v_chr_drop=0;
- vf->priv->accurate_rnd=0;
- vf->priv->param[0]=
- vf->priv->param[1]=SWS_PARAM_DEFAULT;
- vf->priv->palette=NULL;
- } // if(!vf->priv)
- if(args) sscanf(args, "%d:%d:%d:%lf:%lf",
- &vf->priv->w,
- &vf->priv->h,
- &vf->priv->v_chr_drop,
- &vf->priv->param[0],
- &vf->priv->param[1]);
mp_msg(MSGT_VFILTER,MSGL_V,"SwScale params: %d x %d (-1=no scaling)\n",
vf->priv->w,
vf->priv->h);