From 9f7d84483f7a8791f3cdc514bd7895088db3ee94 Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Sat, 14 Dec 2002 20:00:38 +0000 Subject: deliver timestamps in 1/90000 second units, fix handling of type 4 audio headers CVS patchset: 3523 CVS date: 2002/12/14 20:00:38 --- src/demuxers/demux_real.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/demuxers/demux_real.c b/src/demuxers/demux_real.c index 609326f95..624286102 100644 --- a/src/demuxers/demux_real.c +++ b/src/demuxers/demux_real.c @@ -21,7 +21,7 @@ * For more information regarding the Real file format, visit: * http://www.pcisys.net/~melanson/codecs/ * - * $Id: demux_real.c,v 1.24 2002/12/13 21:13:19 guenter Exp $ + * $Id: demux_real.c,v 1.25 2002/12/14 20:00:38 guenter Exp $ */ #ifdef HAVE_CONFIG_H @@ -374,13 +374,13 @@ static void real_parse_headers (demux_real_t *this) { printf ("demux_real: sample_rate %d\n", sample_rate); #endif - str_len = *(mdpr->type_specific_data+off+50); + str_len = *(mdpr->type_specific_data+off+52); #ifdef LOG printf ("demux_real: str_len = %d\n", str_len); #endif - memcpy (fourcc, mdpr->type_specific_data+off+53+str_len, 4); + memcpy (fourcc, mdpr->type_specific_data+off+54+str_len, 4); fourcc[4]=0; #ifdef LOG @@ -802,7 +802,7 @@ static int demux_real_send_chunk(demux_plugin_t *this_gen) { buf = this->video_fifo->buffer_pool_alloc (this->video_fifo); buf->content = buf->mem; - buf->pts = timestamp; + buf->pts = timestamp*90; buf->input_pos = this->input->get_current_pos (this->input); buf->input_time = buf->input_pos * 8 / this->avg_bitrate ; @@ -883,7 +883,7 @@ static int demux_real_send_chunk(demux_plugin_t *this_gen) { buf = this->audio_fifo->buffer_pool_alloc (this->audio_fifo); buf->content = buf->mem; - buf->pts = timestamp; + buf->pts = timestamp*90; buf->input_pos = this->input->get_current_pos (this->input); buf->input_time = buf->input_pos * 8 / this->avg_bitrate ; buf->type = this->audio_buf_type; -- cgit v1.2.3