[MPlayer-cvslog] r21485 - trunk/libmpdemux/muxer_mpeg.c

nicodvb subversion at mplayerhq.hu
Mon Dec 4 01:52:11 CET 2006


Author: nicodvb
Date: Mon Dec  4 01:52:11 2006
New Revision: 21485

Modified:
   trunk/libmpdemux/muxer_mpeg.c

Log:
10l: wrong bitmask when patching the pce_ptr in soft_telecine()

Modified: trunk/libmpdemux/muxer_mpeg.c
==============================================================================
--- trunk/libmpdemux/muxer_mpeg.c	(original)
+++ trunk/libmpdemux/muxer_mpeg.c	Mon Dec  4 01:52:11 2006
@@ -1670,7 +1670,9 @@
 	}
 	else if(vpriv->telecine == TELECINE_DGPULLDOWN)
 	{
-		pce_ptr[3] = (pce_ptr[3] & 0xfd) | bff_mask[vpriv->display_frame % MAX_PATTERN_LENGTH];
+		tff = (bff_mask[vpriv->display_frame % MAX_PATTERN_LENGTH] & 0x2) ? 0x80 : 0;
+		rff = (bff_mask[vpriv->display_frame % MAX_PATTERN_LENGTH] & 0x1) ? 0x02 : 0;
+		pce_ptr[3] = (pce_ptr[3] & 0xfd) | tff | rff;
 	}
 	else
 	{



More information about the MPlayer-cvslog mailing list