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

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24935 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2007-11-02 19:01:13 +00:00
parent ddd4c2e6d0
commit 3d584f9b18
1 changed files with 3 additions and 2 deletions

View File

@ -2272,6 +2272,9 @@ static void fix_parameters(muxer_stream_t *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_stream_t *s,size_t len,unsigned int flags
{
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