changeset 22917:60498e21115a

10l, the scr must be reset before overwriting the first pack with the correct system header (format=mpeg1|2)
author nicodvb
date Sat, 07 Apr 2007 16:42:28 +0000
parents 48b3b0aab275
children b2be172c1366
files libmpdemux/muxer_mpeg.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/muxer_mpeg.c	Sat Apr 07 16:31:12 2007 +0000
+++ b/libmpdemux/muxer_mpeg.c	Sat Apr 07 16:42:28 2007 +0000
@@ -2359,7 +2359,10 @@
 	while(flush_buffers(muxer, 0) > 0);
 	flush_buffers(muxer, 1);
 	if(priv->is_genmpeg1 || priv->is_genmpeg2)
+	{
+		priv->scr = 0;
 		write_mpeg_pack(muxer, NULL, muxer->stream, 1);	//insert fake Nav Packet
+	}
 		
 	mp_msg(MSGT_MUXER, MSGL_INFO, "\nOverhead: %.3lf%% (%"PRIu64" / %"PRIu64")\n", 100.0 * (double)priv->headers_size / (double)priv->data_size, priv->headers_size, priv->data_size);
 }