mirror of https://github.com/mpv-player/mpv
don't buffer more future context that we need
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14974 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f68a1942f1
commit
5b819b022c
|
@ -492,7 +492,7 @@ static int decide_frame_length(struct pullup_context *c)
|
||||||
struct pullup_field *f3 = f2->next;
|
struct pullup_field *f3 = f2->next;
|
||||||
int l;
|
int l;
|
||||||
|
|
||||||
if (queue_length(c->first, c->last) < 6) return 0;
|
if (queue_length(c->first, c->last) < 4) return 0;
|
||||||
foo(c);
|
foo(c);
|
||||||
|
|
||||||
if (f0->affinity == -1) return 1;
|
if (f0->affinity == -1) return 1;
|
||||||
|
@ -536,13 +536,13 @@ static void print_aff_and_breaks(struct pullup_context *c, struct pullup_field *
|
||||||
struct pullup_field *f0 = f;
|
struct pullup_field *f0 = f;
|
||||||
const char aff_l[] = "+..", aff_r[] = "..+";
|
const char aff_l[] = "+..", aff_r[] = "..+";
|
||||||
printf("\naffinity: ");
|
printf("\naffinity: ");
|
||||||
for (i = 0; i < 6; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
printf("%c%d%c", aff_l[1+f->affinity], i, aff_r[1+f->affinity]);
|
printf("%c%d%c", aff_l[1+f->affinity], i, aff_r[1+f->affinity]);
|
||||||
f = f->next;
|
f = f->next;
|
||||||
}
|
}
|
||||||
f = f0;
|
f = f0;
|
||||||
printf("\nbreaks: ");
|
printf("\nbreaks: ");
|
||||||
for (i=0; i<6; i++) {
|
for (i=0; i<4; i++) {
|
||||||
printf("%c%d%c", f->breaks & BREAK_LEFT ? '|' : '.', i, f->breaks & BREAK_RIGHT ? '|' : '.');
|
printf("%c%d%c", f->breaks & BREAK_LEFT ? '|' : '.', i, f->breaks & BREAK_RIGHT ? '|' : '.');
|
||||||
f = f->next;
|
f = f->next;
|
||||||
}
|
}
|
||||||
|
|
|
@ -325,7 +325,7 @@ static int open(vf_instance_t *vf, char* args)
|
||||||
vf->default_reqs = VFCAP_ACCEPT_STRIDE;
|
vf->default_reqs = VFCAP_ACCEPT_STRIDE;
|
||||||
vf->priv = p = calloc(1, sizeof(struct vf_priv_s));
|
vf->priv = p = calloc(1, sizeof(struct vf_priv_s));
|
||||||
p->ctx = c = pullup_alloc_context();
|
p->ctx = c = pullup_alloc_context();
|
||||||
p->fakecount = 2;
|
p->fakecount = 1;
|
||||||
c->verbose = verbose;
|
c->verbose = verbose;
|
||||||
c->junk_left = c->junk_right = 1;
|
c->junk_left = c->junk_right = 1;
|
||||||
c->junk_top = c->junk_bottom = 4;
|
c->junk_top = c->junk_bottom = 4;
|
||||||
|
|
Loading…
Reference in New Issue