[MPlayer-dev-eng] [PATCH] vf_filmdint: make code slightly less confusing.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Feb 14 16:36:50 CET 2016


The number of blocks should be the same for both,
so it shouldn't matter which we use, but it seems
more obvious to use the matching one, and it
silences Coverity.
---
 libmpcodecs/vf_filmdint.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libmpcodecs/vf_filmdint.c b/libmpcodecs/vf_filmdint.c
index 2b4ee09..2e43bc1 100644
--- a/libmpcodecs/vf_filmdint.c
+++ b/libmpcodecs/vf_filmdint.c
@@ -1291,7 +1291,7 @@ static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts)
              (s->low.noise + s->interlaced_low < (s->num_blocks>>8) ||
               s->sad.noise < 160)) ||
             ((show_fields & 12) == 12 &&
-             (ps->low.noise + ps->interlaced_low < (s->num_blocks>>8) ||
+             (ps->low.noise + ps->interlaced_low < (ps->num_blocks>>8) ||
               ps->sad.noise < 160))) {
             p->export_count++;
             dmpi = vf_get_image(vf->next, mpi->imgfmt, MP_IMGTYPE_EXPORT,
-- 
2.7.0



More information about the MPlayer-dev-eng mailing list