From 068809bb197c3afdc3ac30a4c155a444dd7b0599 Mon Sep 17 00:00:00 2001 From: Andreas Heinchen Date: Tue, 15 Apr 2003 03:41:23 +0000 Subject: fixed a/v desync with odd framerates CVS patchset: 4614 CVS date: 2003/04/15 03:41:23 --- src/demuxers/demux_ogg.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/demuxers/demux_ogg.c b/src/demuxers/demux_ogg.c index d4685e02b..66bb3eaee 100644 --- a/src/demuxers/demux_ogg.c +++ b/src/demuxers/demux_ogg.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_ogg.c,v 1.78 2003/04/14 05:06:29 heinchen Exp $ + * $Id: demux_ogg.c,v 1.79 2003/04/15 03:41:23 heinchen Exp $ * * demultiplexer for ogg streams * @@ -558,8 +558,8 @@ static void demux_ogg_send_header (demux_ogg_t *this) { buf = this->video_fifo->buffer_pool_alloc (this->video_fifo); buf->decoder_flags = BUF_FLAG_HEADER; this->frame_duration = loctime_unit * 9 / 1000; - this->factor[stream_num] = loctime_unit * 9 / 1000; - this->quotient[stream_num] = 1; + this->factor[stream_num] = loctime_unit * 9; + this->quotient[stream_num] = 1000; buf->decoder_info[1] = this->frame_duration; memcpy (buf->content, &bih, sizeof (xine_bmiheader)); buf->size = sizeof (xine_bmiheader); @@ -729,8 +729,8 @@ static void demux_ogg_send_header (demux_ogg_t *this) { buf = this->video_fifo->buffer_pool_alloc (this->video_fifo); buf->decoder_flags = BUF_FLAG_HEADER; this->frame_duration = (*(int64_t*)(op.packet+164)) * 9 / 1000; - this->factor[stream_num] = this->frame_duration; - this->quotient[stream_num] = 1; + this->factor[stream_num] = (*(int64_t*)(op.packet+164)) * 9; + this->quotient[stream_num] = 1000; buf->decoder_info[1] = this->frame_duration; memcpy (buf->content, &bih, sizeof (xine_bmiheader)); -- cgit v1.2.3