mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 20:03:10 +02:00
vf_divtc: remove a global variable
This commit is contained in:
parent
99f5fef0ea
commit
e9391e5827
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user