changeset 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 719bd2042c24
children df2a76e9a116
files libmpdemux/muxer_mpeg.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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