changeset 22925:a8f534c4e071

in the system header set audio_locked/video_locked only for dvd and vcd
author nicodvb
date Sun, 08 Apr 2007 10:00:05 +0000
parents 4822223d8425
children 92c92f168648
files libmpdemux/muxer_mpeg.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/muxer_mpeg.c	Sun Apr 08 09:50:27 2007 +0000
+++ b/libmpdemux/muxer_mpeg.c	Sun Apr 08 10:00:05 2007 +0000
@@ -591,7 +591,11 @@
 	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