[Mplayer-cvslog] CVS: main/libmpcodecs vf_filmdint.c,1.1,1.2

Richard Felker CVS rfelker at mplayerhq.hu
Thu Dec 11 05:48:04 CET 2003


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv31887/libmpcodecs

Modified Files:
	vf_filmdint.c 
Log Message:
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.



Index: vf_filmdint.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_filmdint.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- vf_filmdint.c	8 Dec 2003 22:57:21 -0000	1.1
+++ vf_filmdint.c	11 Dec 2003 04:47:42 -0000	1.2
@@ -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;



More information about the MPlayer-cvslog mailing list