diff libmpdemux/muxer_mpeg.c @ 18751:6dd7e4c77e3d

try to reduce the distance between consecutive frames with pts to no more than 0.4 seconds (required by dvds)
author nicodvb
date Sun, 18 Jun 2006 16:40:29 +0000
parents 19cd9e0f8ac4
children a8e681ad7c90
line wrap: on
line diff
--- a/libmpdemux/muxer_mpeg.c	Sun Jun 18 14:51:26 2006 +0000
+++ b/libmpdemux/muxer_mpeg.c	Sun Jun 18 16:40:29 2006 +0000
@@ -990,7 +990,7 @@
 
 		if(s->type != MUXER_TYPE_VIDEO)
 			ret = 1;
-		else if((spriv->framebuf[i].type == I_FRAME || priv->ts_allframes || dpts >= 45000*300))	//0.5 seconds
+		else if((spriv->framebuf[i].type == I_FRAME || priv->ts_allframes || dpts >= 36000*300))	//0.4 seconds
 			ret = 1;
 
 		if(ret)