diff libmpdemux/muxer_mpeg.c @ 17603:22ced3e0a4aa

delay rff by 6, not 3 frames, so the rff will be in the middle of the 12 frames sequence
author nicodvb
date Sun, 12 Feb 2006 11:47:36 +0000
parents 6fa1149d8c80
children 8f2e94a4a4c1
line wrap: on
line diff
--- a/libmpdemux/muxer_mpeg.c	Sun Feb 12 11:12:21 2006 +0000
+++ b/libmpdemux/muxer_mpeg.c	Sun Feb 12 11:47:36 2006 +0000
@@ -1861,7 +1861,9 @@
 			{
 				if(rest1)
 				{
-					vpriv->delay_rff = 4;	//delay of 3 frames the setting, so we don't have 2 consecutive rff
+					//delay the setting by 6 frames, so we don't have 2 consecutive rff
+					//and the transition will be smoother (halfway in the 12-frames sequence)
+					vpriv->delay_rff = 7;
 					mp_msg(MSGT_MUXER, MSGL_V, "\r\nDELAYED: %d\r\n", rest2);
 				}
 				else