summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-02 19:06:15 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-02 19:06:15 +0000
commitcd0c142521ac2611fbc2935e8d86cc94634af73d (patch)
tree4a0504d3881ba2f387d1eadcebed8cc06d789769 /libmpdemux
parent3d584f9b18b2595aa8617f20fa9804625369a12f (diff)
downloadmpv-cd0c142521ac2611fbc2935e8d86cc94634af73d.tar.bz2
mpv-cd0c142521ac2611fbc2935e8d86cc94634af73d.tar.xz
add streams to the PSM only if priv->use_psm is set, otherwise the muxer would
write the map also for ordinary mpeg audio and video streams (wasting space) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24936 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/muxer_mpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/muxer_mpeg.c b/libmpdemux/muxer_mpeg.c
index 0b4a4c9c68..a678f50ee3 100644
--- a/libmpdemux/muxer_mpeg.c
+++ b/libmpdemux/muxer_mpeg.c
@@ -2277,7 +2277,7 @@ static void fix_parameters(muxer_stream_t *stream)
priv->use_psm = 1;
}
- if(priv->is_genmpeg2)
+ if(priv->is_genmpeg2 && priv->use_psm)
{
add_to_psm(priv, spriv->id, stream_format);
priv->psm_streams_cnt++;