changeset 11623:ecaf7047b6e8

Patch from the author, Zoltan Hidvegi: The filmdint filter does not handle NTSC "telecined" 15fps movies where there is a frame break in the middle of every second NTSC frame, it outputs only 15 frames for every 30 input frames, ignoring the io option. You can notice this during encoding such a sequence you will have lots of diplicate frames / skip frames messages. The patch below fixes this.
author rfelker
date Thu, 11 Dec 2003 04:47:42 +0000
parents f6e35cdf1818
children 03e8cbee7333
files libmpcodecs/vf_filmdint.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_filmdint.c	Wed Dec 10 21:42:21 2003 +0000
+++ b/libmpcodecs/vf_filmdint.c	Thu Dec 11 04:47:42 2003 +0000
@@ -1239,7 +1239,10 @@
 	} else {
 	    if (p->notout >= p->num_fields)
 		dropped_fields += p->num_fields + 2 - breaks;
-	    if (breaks == 2 && p->iosync > -3*p->in_inc)
+	    if (breaks == 1) {
+		if (p->iosync >= 4*p->in_inc)
+		    show_fields = 6;
+	    } else if (p->iosync > -3*p->in_inc)
 		show_fields = 3;  /* odd+even */
 	}
 	break;