diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:26:13 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:34:35 +0300 |
commit | 0eb321bf2c1cc0e048faff26a01f86cdd3ec254f (patch) | |
tree | 71cb9bd9ed121156d3382066c0722c73189afe04 /libmpcodecs/vf_detc.c | |
parent | 6d908205fbadbdf7ccdc6c5e0eb918f0b43f16e0 (diff) | |
download | mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.bz2 mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.xz |
Remove trailing whitespace from most files
Diffstat (limited to 'libmpcodecs/vf_detc.c')
-rw-r--r-- | libmpcodecs/vf_detc.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/libmpcodecs/vf_detc.c b/libmpcodecs/vf_detc.c index 4e935cd01b..d46218b688 100644 --- a/libmpcodecs/vf_detc.c +++ b/libmpcodecs/vf_detc.c @@ -144,11 +144,11 @@ static int analyze_fixed_pattern(struct vf_priv_s *p, mp_image_t *new, mp_image_ static int analyze_aggressive(struct vf_priv_s *p, mp_image_t *new, mp_image_t *old) { struct metrics m, pm; - + if (p->frame >= 0) p->frame = (p->frame+1)%5; - + diff_fields(&m, old, new); - + status(p->frame, &m); pm = p->pm; @@ -173,7 +173,7 @@ static int analyze_aggressive(struct vf_priv_s *p, mp_image_t *new, mp_image_t * p->pm = pm; /* hack :) */ p->frame = 3; return TC_IL1; - } + } } else { mp_msg(MSGT_VFILTER, MSGL_V, "mismatched telecine fields!\n"); p->frame = -1; @@ -283,7 +283,7 @@ static int do_put_image(struct vf_instance* vf, mp_image_t *dmpi) dropflag = (++p->lastdrop >= 5) && (4*p->inframes <= 5*p->outframes); break; } - + if (dropflag) { mp_msg(MSGT_VFILTER, MSGL_V, "drop! [%d/%d=%g]\n", p->outframes, p->inframes, (float)p->outframes/p->inframes); @@ -311,7 +311,7 @@ static int put_image(struct vf_instance* vf, mp_image_t *mpi, double pts) else dmpi = vf_get_image(vf->next, mpi->imgfmt, MP_IMGTYPE_STATIC, MP_IMGFLAG_ACCEPT_STRIDE | MP_IMGFLAG_PRESERVE, mpi->width, mpi->height); - + switch (p->analyze(p, mpi, dmpi)) { case TC_DROP: /* Don't copy anything unless we'll need to read it. */ @@ -433,5 +433,3 @@ const vf_info_t vf_info_detc = { open, NULL }; - - |