[MPlayer-cvslog] r24935 - trunk/libmpdemux/muxer_mpeg.c

nicodvb subversion at mplayerhq.hu
Fri Nov 2 20:01:13 CET 2007


Author: nicodvb
Date: Fri Nov  2 20:01:13 2007
New Revision: 24935

Log:
moved to fix_parameters() the decision of the necessity of the PSM based on the format of the video stream

Modified:
   trunk/libmpdemux/muxer_mpeg.c

Modified: trunk/libmpdemux/muxer_mpeg.c
==============================================================================
--- trunk/libmpdemux/muxer_mpeg.c	(original)
+++ trunk/libmpdemux/muxer_mpeg.c	Fri Nov  2 20:01:13 2007
@@ -2272,6 +2272,9 @@ static void fix_parameters(muxer_stream_
 			spriv->is_ready = 0;
 		else
 			spriv->is_ready = 1;
+
+		if(!is_mpeg1(stream_format) && !is_mpeg2(stream_format))
+			priv->use_psm = 1;
 	}
 	
 	if(priv->is_genmpeg2)
@@ -2323,8 +2326,6 @@ static void mpegfile_write_chunk(muxer_s
 		{
 			spriv->is_mpeg12 = 0;
 			spriv->telecine = 0;
-			if(spriv->size == 0)
-				priv->use_psm = 1;
 			if(len)
 				sz = parse_mpeg4_video(s, priv, spriv, fps, len);
 			else



More information about the MPlayer-cvslog mailing list