summaryrefslogtreecommitdiff
path: root/src/libxinevdec/qtsmc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libxinevdec/qtsmc.c')
-rw-r--r--src/libxinevdec/qtsmc.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libxinevdec/qtsmc.c b/src/libxinevdec/qtsmc.c
index 7643867ff..1230062e0 100644
--- a/src/libxinevdec/qtsmc.c
+++ b/src/libxinevdec/qtsmc.c
@@ -23,7 +23,7 @@
* For more information on the SMC format, visit:
* http://www.pcisys.net/~melanson/codecs/
*
- * $Id: qtsmc.c,v 1.23 2004/01/12 17:35:19 miguelfreitas Exp $
+ * $Id: qtsmc.c,v 1.24 2004/02/09 22:04:11 jstembridge Exp $
*/
#include <stdio.h>
@@ -530,6 +530,11 @@ static void qtsmc_decode_data (video_decoder_t *this_gen,
COMPUTE_V(palette[i].r, palette[i].g, palette[i].b);
}
}
+
+ 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) { /* need to initialize */
this->stream->video_out->open (this->stream->video_out, this->stream);
@@ -541,7 +546,6 @@ static void qtsmc_decode_data (video_decoder_t *this_gen,
this->width = (bih->biWidth + 3) & ~0x03;
this->height = (bih->biHeight + 3) & ~0x03;
this->ratio = (double)this->width/(double)this->height;
- this->video_step = buf->decoder_info[1];
if (this->buf)
free (this->buf);
@@ -569,9 +573,6 @@ static void qtsmc_decode_data (video_decoder_t *this_gen,
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) {
img = this->stream->video_out->get_frame (this->stream->video_out,