Mercurial > mplayer.hg
changeset 14951:12c44e82440a
improve handling of soft-telecined input (faster, fewer mistakes)
author | rfelker |
---|---|
date | Wed, 16 Mar 2005 03:39:13 +0000 |
parents | 66cd3b3565ff |
children | 9bd311f645b2 |
files | libmpcodecs/pullup.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/pullup.c Tue Mar 15 23:21:36 2005 +0000 +++ b/libmpcodecs/pullup.c Wed Mar 16 03:39:13 2005 +0000 @@ -455,6 +455,14 @@ int max_l=0, max_r=0, l; if (f->flags & F_HAVE_AFFINITY) return; f->flags |= F_HAVE_AFFINITY; + if (f->buffer == f->next->next->buffer) { + f->affinity = 1; + f->next->affinity = 0; + f->next->next->affinity = -1; + f->next->flags |= F_HAVE_AFFINITY; + f->next->next->flags |= F_HAVE_AFFINITY; + return; + } for (i = 0; i < c->metric_len; i++) { l = f->comb[i] - f->next->comb[i]; if (l > max_l) max_l = l;