summaryrefslogtreecommitdiffstats
path: root/libmpdemux/muxer_mpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux/muxer_mpeg.c')
-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