changeset 24907:91d30168e22e

moved to fix_parameters() the decision of the necessity of the PSM based on the format of the video stream
author nicodvb
date Fri, 02 Nov 2007 19:01:13 +0000
parents e3fec0def910
children c59a27887e5e
files libmpdemux/muxer_mpeg.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/muxer_mpeg.c	Fri Nov 02 18:52:08 2007 +0000
+++ b/libmpdemux/muxer_mpeg.c	Fri Nov 02 19:01:13 2007 +0000
@@ -2272,6 +2272,9 @@
 			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 @@
 		{
 			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