summaryrefslogtreecommitdiff
path: root/src/libxinevdec/msvc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libxinevdec/msvc.c')
-rw-r--r--src/libxinevdec/msvc.c11
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;