[PATCH] vf_filmdint: make code slightly less confusing.

Reimar Döffinger <[email protected]>
Newsgroups gmane.comp.video.mplayer.devel
Message-ID <[email protected]>
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

_______________________________________________
MPlayer-dev-eng mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.