summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_rawdv.c
diff options
context:
space:
mode:
authorJames Stembridge <jstembridge@users.sourceforge.net>2004-02-09 22:24:36 +0000
committerJames Stembridge <jstembridge@users.sourceforge.net>2004-02-09 22:24:36 +0000
commit5e461e6b22a4c244c5e6ab13ddeb9581a2b8216b (patch)
treec37224a2fdd4f6fbd100d3dbfa0d2bf36c71f02c /src/demuxers/demux_rawdv.c
parentca689b36373e820c26caa4c1b34679ca1a6038be (diff)
downloadxine-lib-5e461e6b22a4c244c5e6ab13ddeb9581a2b8216b.tar.gz
xine-lib-5e461e6b22a4c244c5e6ab13ddeb9581a2b8216b.tar.bz2
Always send frame duration using BUF_FLAG_FRAMERATE
CVS patchset: 6128 CVS date: 2004/02/09 22:24:36
Diffstat (limited to 'src/demuxers/demux_rawdv.c')
-rw-r--r--src/demuxers/demux_rawdv.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/demuxers/demux_rawdv.c b/src/demuxers/demux_rawdv.c
index dd8067e18..2505fa94b 100644
--- a/src/demuxers/demux_rawdv.c
+++ b/src/demuxers/demux_rawdv.c
@@ -19,7 +19,7 @@
*/
/*
- * $Id: demux_rawdv.c,v 1.18 2004/01/12 17:35:15 miguelfreitas Exp $
+ * $Id: demux_rawdv.c,v 1.19 2004/02/09 22:24:37 jstembridge Exp $
*
* demultiplexer for raw dv streams
*/
@@ -178,14 +178,15 @@ static void demux_raw_dv_send_headers (demux_plugin_t *this_gen) {
buf = this->video_fifo->buffer_pool_alloc(this->video_fifo);
buf->content = buf->mem;
buf->type = BUF_VIDEO_DV;
- buf->decoder_flags |= BUF_FLAG_HEADER|BUF_FLAG_STDHEADER|BUF_FLAG_FRAME_END;
+ buf->decoder_flags |= BUF_FLAG_HEADER|BUF_FLAG_STDHEADER|BUF_FLAG_FRAMERATE|
+ BUF_FLAG_FRAME_END;
bih = (xine_bmiheader *)buf->content;
if( !(scratch[3] & 0x80) ) {
/* NTSC */
this->frame_size = NTSC_FRAME_SIZE;
- this->duration = buf->decoder_info[1] = 3003;
+ this->duration = buf->decoder_info[0] = 3003;
bih->biWidth = 720;
bih->biHeight = 480;
_x_stream_info_set(this->stream, XINE_STREAM_INFO_VIDEO_BITRATE,
@@ -193,7 +194,7 @@ static void demux_raw_dv_send_headers (demux_plugin_t *this_gen) {
} else {
/* PAL */
this->frame_size = PAL_FRAME_SIZE;
- this->duration = buf->decoder_info[1] = 3600;
+ this->duration = buf->decoder_info[0] = 3600;
bih->biWidth = 720;
bih->biHeight = 576;
_x_stream_info_set(this->stream, XINE_STREAM_INFO_VIDEO_BITRATE,