0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

vf_divtc: remove a global variable

This commit is contained in:
wm4 2014-06-11 00:17:59 +02:00
parent 99f5fef0ea
commit e9391e5827

View File

@ -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: