Mercurial > mplayer.hg
comparison libmpdemux/muxer_mpeg.c @ 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 |
comparison
equal
deleted
inserted
replaced
22924:4822223d8425 | 22925:a8f534c4e071 |
---|---|
589 len += 2; | 589 len += 2; |
590 write_mpeg_rate(MUX_MPEG1, &buff[len], muxer->sysrate); | 590 write_mpeg_rate(MUX_MPEG1, &buff[len], muxer->sysrate); |
591 len += 3; | 591 len += 3; |
592 | 592 |
593 buff[len++] = 0x4 | (priv->is_xvcd ? 1 : 0); //1 audio stream bound, no fixed, CSPS only for xvcd | 593 buff[len++] = 0x4 | (priv->is_xvcd ? 1 : 0); //1 audio stream bound, no fixed, CSPS only for xvcd |
594 //stolen from libavformat | |
595 if(priv->is_xvcd || priv->is_dvd) | |
594 buff[len++] = 0xe1; //system_audio_lock, system_video_lock, marker, 1 video stream bound | 596 buff[len++] = 0xe1; //system_audio_lock, system_video_lock, marker, 1 video stream bound |
597 else | |
598 buff[len++] = 0x21; //marker, 1 video stream bound | |
595 | 599 |
596 buff[len++] = ((priv->mux == MUX_MPEG1) ? 0xff : 0x7f); //in mpeg2 there's the packet rate restriction | 600 buff[len++] = ((priv->mux == MUX_MPEG1) ? 0xff : 0x7f); //in mpeg2 there's the packet rate restriction |
597 | 601 |
598 for(i = 0; i < priv->sys_info.cnt; i++) | 602 for(i = 0; i < priv->sys_info.cnt; i++) |
599 { | 603 { |