From 4198e9d45b98c7657cbddfdb74f5647e0e6c21de Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 21 Nov 2009 19:50:33 +0000 Subject: 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 --- libmpcodecs/vf_delogo.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'libmpcodecs/vf_delogo.c') diff --git a/libmpcodecs/vf_delogo.c b/libmpcodecs/vf_delogo.c index 7654b627de..c7252d2a26 100644 --- a/libmpcodecs/vf_delogo.c +++ b/libmpcodecs/vf_delogo.c @@ -204,20 +204,6 @@ static int open(vf_instance_t *vf, char* args){ vf->get_image=get_image; vf->query_format=query_format; vf->uninit=uninit; - if (!vf->priv) - { - vf->priv=malloc(sizeof(struct vf_priv_s)); - memset(vf->priv, 0, sizeof(struct vf_priv_s)); - } - - if (args) res = sscanf(args, "%d:%d:%d:%d:%d", - &vf->priv->xoff, &vf->priv->yoff, - &vf->priv->lw, &vf->priv->lh, - &vf->priv->band); - if (args && (res != 5)) { - uninit(vf); - return 0; // bad syntax - } mp_msg(MSGT_VFILTER, MSGL_V, "delogo: %d x %d, %d x %d, band = %d\n", vf->priv->xoff, vf->priv->yoff, -- cgit v1.2.3