From 8700c75544d88f1479d5455b5b2788921d4dd5ee Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Sat, 9 Feb 2002 07:13:22 +0000 Subject: the long-awaited video_out changes, not completely debuged (races) - pts are 64 bit now - scr and video_out-loop run all the time - video_out cleanups - metronom cleanups - buffer type BUF_CONTROL_DISCONTINUITY is used internally now, input plugins should no longer send this one - support for individual frame durations - using nano-/usleep instead of itimer (simpler code, maybe this will help freebsd) CVS patchset: 1487 CVS date: 2002/02/09 07:13:22 --- src/demuxers/demux_mpeg.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src/demuxers/demux_mpeg.c') diff --git a/src/demuxers/demux_mpeg.c b/src/demuxers/demux_mpeg.c index 8df1d4fe1..ddfc39cfc 100644 --- a/src/demuxers/demux_mpeg.c +++ b/src/demuxers/demux_mpeg.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: demux_mpeg.c,v 1.48 2002/01/02 18:16:07 jkeil Exp $ + * $Id: demux_mpeg.c,v 1.49 2002/02/09 07:13:22 guenter Exp $ * * demultiplexer for mpeg 1/2 program streams * reads streams of variable blocksizes @@ -185,8 +185,8 @@ static void parse_mpeg2_packet (demux_mpeg_t *this, int stream_id, uint32_t scr) return ; } buf->type = BUF_AUDIO_A52 + track; - buf->PTS = pts; - buf->SCR = scr; + buf->pts = pts; + buf->scr = scr; if (this->preview_mode) buf->decoder_info[0] = 0; else @@ -235,8 +235,8 @@ static void parse_mpeg2_packet (demux_mpeg_t *this, int stream_id, uint32_t scr) return ; } buf->type = BUF_AUDIO_MPEG + track; - buf->PTS = pts; - buf->SCR = scr; + buf->pts = pts; + buf->scr = scr; if (this->preview_mode) buf->decoder_info[0] = 0; else @@ -280,8 +280,8 @@ static void parse_mpeg2_packet (demux_mpeg_t *this, int stream_id, uint32_t scr) return ; } buf->type = BUF_VIDEO_MPEG; - buf->PTS = pts; - buf->SCR = scr; + buf->pts = pts; + buf->scr = scr; if (this->preview_mode) buf->decoder_info[0] = 0; else @@ -392,8 +392,8 @@ static void parse_mpeg1_packet (demux_mpeg_t *this, int stream_id, uint32_t scr) return ; } buf->type = BUF_AUDIO_MPEG + track ; - buf->PTS = pts; - buf->SCR = scr; + buf->pts = pts; + buf->scr = scr; if (this->preview_mode) buf->decoder_info[0] = 0; else @@ -415,8 +415,8 @@ static void parse_mpeg1_packet (demux_mpeg_t *this, int stream_id, uint32_t scr) return ; } buf->type = BUF_VIDEO_MPEG; - buf->PTS = pts; - buf->SCR = scr; + buf->pts = pts; + buf->scr = scr; if (this->preview_mode) buf->decoder_info[0] = 0; else @@ -516,14 +516,14 @@ static uint32_t parse_pack(demux_mpeg_t *this) { buf_element_t *buf; buf = this->video_fifo->buffer_pool_alloc (this->video_fifo); - buf->type = BUF_CONTROL_AVSYNC_RESET; - buf->SCR = scr; + buf->type = BUF_CONTROL_DISCONTINUITY; + buf->scr = scr; this->video_fifo->put (this->video_fifo, buf); if (this->audio_fifo) { buf = this->audio_fifo->buffer_pool_alloc (this->audio_fifo); - buf->type = BUF_CONTROL_AVSYNC_RESET; - buf->SCR = scr; + buf->type = BUF_CONTROL_DISCONTINUITY; + buf->scr = scr; this->audio_fifo->put (this->audio_fifo, buf); } } -- cgit v1.2.3