From e9391e5827a4dc13fd030e9b579b607abcbf7a44 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 11 Jun 2014 00:17:59 +0200 Subject: vf_divtc: remove a global variable --- video/filter/vf_divtc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'video/filter') diff --git a/video/filter/vf_divtc.c b/video/filter/vf_divtc.c index 662106274c..e93950ff6f 100644 --- a/video/filter/vf_divtc.c +++ b/video/filter/vf_divtc.c @@ -50,7 +50,7 @@ struct vf_priv_s struct mp_image *buffer; }; -static int diff_C(unsigned char *old, unsigned char *new, int os, int ns) +static int diff(unsigned char *old, unsigned char *new, int os, int ns) { int x, y, d=0; @@ -61,8 +61,6 @@ static int diff_C(unsigned char *old, unsigned char *new, int os, int ns) return d; } -static int (*diff)(unsigned char *, unsigned char *, int, int); - static int diff_plane(unsigned char *old, unsigned char *new, int w, int h, int os, int ns, int arg) { @@ -598,8 +596,6 @@ static int vf_open(vf_instance_t *vf) if(!(p->history=calloc(sizeof *p->history, p->window))) abort(); - diff = diff_C; - vf_detc_init_pts_buf(&p->ptsbuf); return 1; fail: -- cgit v1.2.3