summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2002-12-14 20:00:38 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2002-12-14 20:00:38 +0000
commit9f7d84483f7a8791f3cdc514bd7895088db3ee94 (patch)
treeff3d233581c7b53181d5ff50be5c34b1d2df1b7c /src
parent07a59f0e933d3bd7f7cf6304832b7e0a06220595 (diff)
downloadxine-lib-9f7d84483f7a8791f3cdc514bd7895088db3ee94.tar.gz
xine-lib-9f7d84483f7a8791f3cdc514bd7895088db3ee94.tar.bz2
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
Diffstat (limited to 'src')
-rw-r--r--src/demuxers/demux_real.c10
1 files 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;