summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-03-20 20:37:44 +0000
committerrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-03-20 20:37:44 +0000
commit5b819b022cf027807269fb4703bb9a9781abad9d (patch)
tree31c0dbc9859af57519e1771304823a939b3e11d8 /libmpcodecs
parentf68a1942f1f88460b0e4be744d37757ee7034e6d (diff)
downloadmpv-5b819b022cf027807269fb4703bb9a9781abad9d.tar.bz2
mpv-5b819b022cf027807269fb4703bb9a9781abad9d.tar.xz
don't buffer more future context that we need
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14974 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/pullup.c6
-rw-r--r--libmpcodecs/vf_pullup.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/libmpcodecs/pullup.c b/libmpcodecs/pullup.c
index aa20b7905e..ed4034dcd6 100644
--- a/libmpcodecs/pullup.c
+++ b/libmpcodecs/pullup.c
@@ -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;
}
diff --git a/libmpcodecs/vf_pullup.c b/libmpcodecs/vf_pullup.c
index 54fe3626de..ba914e9a11 100644
--- a/libmpcodecs/vf_pullup.c
+++ b/libmpcodecs/vf_pullup.c
@@ -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;