From 4cdcd89714975b4357b8fefcbe9c5486025c502e Mon Sep 17 00:00:00 2001 From: nicodvb Date: Sun, 8 Apr 2007 10:00:05 +0000 Subject: 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 --- libmpdemux/muxer_mpeg.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libmpdemux') 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 -- cgit v1.2.3