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:
rfelker 2005-03-20 20:37:44 +00:00
parent f68a1942f1
commit 5b819b022c
2 changed files with 4 additions and 4 deletions

View File

@ -492,7 +492,7 @@ static int decide_frame_length(struct pullup_context *c)
struct pullup_field *f3 = f2->next;
int l;
if (queue_length(c->first, c->last) < 6) return 0;
if (queue_length(c->first, c->last) < 4) return 0;
foo(c);
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;
const char aff_l[] = "+..", aff_r[] = "..+";
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]);
f = f->next;
}
f = f0;
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 ? '|' : '.');
f = f->next;
}

View File

@ -325,7 +325,7 @@ static int open(vf_instance_t *vf, char* args)
vf->default_reqs = VFCAP_ACCEPT_STRIDE;
vf->priv = p = calloc(1, sizeof(struct vf_priv_s));
p->ctx = c = pullup_alloc_context();
p->fakecount = 2;
p->fakecount = 1;
c->verbose = verbose;
c->junk_left = c->junk_right = 1;
c->junk_top = c->junk_bottom = 4;