summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-04-08 10:00:05 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-04-08 10:00:05 +0000
commit4cdcd89714975b4357b8fefcbe9c5486025c502e (patch)
tree4e5bd8b8dfaba6f4f0c4764389a0f9d21b74abb5 /libmpdemux
parentc675883bb40a0ffc81386db5c69f7dc1b80719b2 (diff)
downloadmpv-4cdcd89714975b4357b8fefcbe9c5486025c502e.tar.bz2
mpv-4cdcd89714975b4357b8fefcbe9c5486025c502e.tar.xz
in the system header set audio_locked/video_locked only for dvd and vcd
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22943 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/muxer_mpeg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmpdemux/muxer_mpeg.c b/libmpdemux/muxer_mpeg.c
index 01c65d56f5..1150b64c33 100644
--- a/libmpdemux/muxer_mpeg.c
+++ b/libmpdemux/muxer_mpeg.c
@@ -591,7 +591,11 @@ static int write_mpeg_system_header(muxer_t *muxer, char *buff)
len += 3;
buff[len++] = 0x4 | (priv->is_xvcd ? 1 : 0); //1 audio stream bound, no fixed, CSPS only for xvcd
+ //stolen from libavformat
+ if(priv->is_xvcd || priv->is_dvd)
buff[len++] = 0xe1; //system_audio_lock, system_video_lock, marker, 1 video stream bound
+ else
+ buff[len++] = 0x21; //marker, 1 video stream bound
buff[len++] = ((priv->mux == MUX_MPEG1) ? 0xff : 0x7f); //in mpeg2 there's the packet rate restriction