summaryrefslogtreecommitdiffstats
path: root/video/filter
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-06-11 00:17:59 +0200
committerwm4 <wm4@nowhere>2014-06-11 00:39:14 +0200
commite9391e5827a4dc13fd030e9b579b607abcbf7a44 (patch)
treed73f2ba1cf9bf5d96847354833ae821e42cb0455 /video/filter
parent99f5fef0ea5671d41fb7b737fbc3e4236542a757 (diff)
downloadmpv-e9391e5827a4dc13fd030e9b579b607abcbf7a44.tar.bz2
mpv-e9391e5827a4dc13fd030e9b579b607abcbf7a44.tar.xz
vf_divtc: remove a global variable
Diffstat (limited to 'video/filter')
-rw-r--r--video/filter/vf_divtc.c6
1 files changed, 1 insertions, 5 deletions
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: