From 3a29d80023f7950f43323b9e88c00a8601533a80 Mon Sep 17 00:00:00 2001 From: Mike Melanson Date: Sat, 21 Jun 2003 22:33:49 +0000 Subject: set a different default duration CVS patchset: 5085 CVS date: 2003/06/21 22:33:49 --- src/demuxers/demux_4xm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/demuxers/demux_4xm.c b/src/demuxers/demux_4xm.c index ec001498b..d83df7771 100644 --- a/src/demuxers/demux_4xm.c +++ b/src/demuxers/demux_4xm.c @@ -21,7 +21,7 @@ * For more information on the 4xm file format, visit: * http://www.pcisys.net/~melanson/codecs/ * - * $Id: demux_4xm.c,v 1.1 2003/05/26 21:06:01 tmmm Exp $ + * $Id: demux_4xm.c,v 1.2 2003/06/21 22:33:49 tmmm Exp $ */ #ifdef HAVE_CONFIG_H @@ -213,9 +213,9 @@ static int open_fourxm_file(demux_fourxm_t *fourxm) { } } - free(header); - + fourxm->filesize = fourxm->input->get_length(fourxm->input); + free(header); return 1; } @@ -244,6 +244,7 @@ static int demux_fourxm_send_chunk(demux_plugin_t *this_gen) { case ifrm_TAG: case pfrm_TAG: case cfrm_TAG: + /* bump the pts if this last data sent out was audio */ if (this->last_chunk_was_audio) { this->last_chunk_was_audio = 0; pts_inc = this->last_audio_frame_count; @@ -388,7 +389,7 @@ static void demux_fourxm_send_headers(demux_plugin_t *this_gen) { buf = this->video_fifo->buffer_pool_alloc (this->video_fifo); buf->decoder_flags = BUF_FLAG_HEADER; buf->decoder_info[0] = 0; - buf->decoder_info[1] = 3000; /* initial video_step */ + buf->decoder_info[1] = 6000; /* initial video_step */ memcpy(buf->content, &this->bih, sizeof(this->bih)); buf->size = sizeof(this->bih); buf->type = BUF_VIDEO_4XM; @@ -560,4 +561,3 @@ void *demux_fourxm_init_plugin (xine_t *xine, void *data) { return this; } - -- cgit v1.2.3