diff options
author | James Stembridge <jstembridge@users.sourceforge.net> | 2004-02-09 22:04:11 +0000 |
---|---|---|
committer | James Stembridge <jstembridge@users.sourceforge.net> | 2004-02-09 22:04:11 +0000 |
commit | 37b34df0b811fbd7e0a4b39dd4a7fe2fd3e37756 (patch) | |
tree | b72f943db9e7a45c28d8673859c88be1030e5b19 /src/libxinevdec/msvc.c | |
parent | f32ff1b1bdf6d7362e254e6a53e1efe8f51d0547 (diff) | |
download | xine-lib-37b34df0b811fbd7e0a4b39dd4a7fe2fd3e37756.tar.gz xine-lib-37b34df0b811fbd7e0a4b39dd4a7fe2fd3e37756.tar.bz2 |
Only read frame duration when BUF_FLAG_FRAMERATE is set
CVS patchset: 6125
CVS date: 2004/02/09 22:04:11
Diffstat (limited to 'src/libxinevdec/msvc.c')
-rw-r--r-- | src/libxinevdec/msvc.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libxinevdec/msvc.c b/src/libxinevdec/msvc.c index 2c17b5eb4..a2be6dbc0 100644 --- a/src/libxinevdec/msvc.c +++ b/src/libxinevdec/msvc.c @@ -22,7 +22,7 @@ * based on overview of Microsoft Video-1 algorithm * by Mike Melanson: http://www.pcisys.net/~melanson/codecs/video1.txt * - * $Id: msvc.c,v 1.29 2004/01/12 17:35:19 miguelfreitas Exp $ + * $Id: msvc.c,v 1.30 2004/02/09 22:04:11 jstembridge Exp $ */ #include <stdlib.h> @@ -222,13 +222,17 @@ static void msvc_decode_data (video_decoder_t *this_gen, buf_element_t *buf) { (palette[i].b << 0), &this->color_table[i]); } + + if (buf->decoder_flags & BUF_FLAG_FRAMERATE) { + this->video_step = buf->decoder_info[0]; + _x_stream_info_set(this->stream, XINE_STREAM_INFO_FRAME_DURATION, this->video_step); + } if (buf->decoder_flags & BUF_FLAG_STDHEADER) { xine_bmiheader *bih; int image_size; bih = (xine_bmiheader *) buf->content; - this->video_step = buf->decoder_info[1]; this->width = (bih->biWidth + 1) & ~0x1; this->height = bih->biHeight; @@ -269,9 +273,6 @@ static void msvc_decode_data (video_decoder_t *this_gen, buf_element_t *buf) { this->size += buf->size; - if (buf->decoder_flags & BUF_FLAG_FRAMERATE) - this->video_step = buf->decoder_info[0]; - if (buf->decoder_flags & BUF_FLAG_FRAME_END) { vo_frame_t *img; |