changeset 22927:b2c11182ea15

in mpegfile_write_header(only for mpeg1/2) don't overwrite the values of bufsize with dwSuggestedBufferSize (those values are completely invented)
author nicodvb
date Sun, 08 Apr 2007 10:09:56 +0000
parents 92c92f168648
children 09f2039f1113
files libmpdemux/muxer_mpeg.c
diffstat 1 files changed, 0 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/muxer_mpeg.c	Sun Apr 08 10:00:47 2007 +0000
+++ b/libmpdemux/muxer_mpeg.c	Sun Apr 08 10:09:56 2007 +0000
@@ -2379,16 +2379,6 @@
 	
 	priv->headers_cnt++;
 	
-	if((priv->is_genmpeg1 || priv->is_genmpeg2) && (priv->headers_cnt == muxer->avih.dwStreams))
-	{
-		int i;
-		for(i = 0; i < muxer->avih.dwStreams; i++)
-		{
-			priv->sys_info.streams[i].bufsize = muxer->streams[i]->h.dwSuggestedBufferSize;
-			mp_msg(MSGT_MUXER, MSGL_DBG2, "IDX: %d, BUFSIZE: %u\n", i, priv->sys_info.streams[i].bufsize);
-		}
-	}
-	
 	//write the first system header only for generic mpeg1/2 muxes, and only when we have collected all necessary infos
 	if(priv->is_genmpeg1 || priv->is_genmpeg2 || ((priv->is_xvcd || priv->is_xsvcd) && (priv->headers_cnt == 1)))
 	{