summaryrefslogtreecommitdiff
path: root/src/libxinevdec/cyuv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libxinevdec/cyuv.c')
-rw-r--r--src/libxinevdec/cyuv.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libxinevdec/cyuv.c b/src/libxinevdec/cyuv.c
index fea47873b..b8393bc97 100644
--- a/src/libxinevdec/cyuv.c
+++ b/src/libxinevdec/cyuv.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: cyuv.c,v 1.25 2004/01/12 17:35:18 miguelfreitas Exp $
+ * $Id: cyuv.c,v 1.26 2004/02/09 22:04:11 jstembridge Exp $
*/
/* And this is the header that came with the CYUV decoder: */
@@ -161,7 +161,6 @@ static void cyuv_decode_data (video_decoder_t *this_gen,
this->height = *(unsigned int *)&buf->content[8];
this->ratio = (double)this->width/(double)this->height;
this->skipframes = 0;
- this->video_step = buf->decoder_info[1];
_x_meta_info_set(this->stream, XINE_META_INFO_VIDEOCODEC, "Creative YUV");
@@ -178,8 +177,10 @@ static void cyuv_decode_data (video_decoder_t *this_gen,
xine_fast_memcpy (&this->buf[this->size], buf->content, buf->size);
this->size += buf->size;
- if (buf->decoder_flags & BUF_FLAG_FRAMERATE)
+ 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_FRAME_END) { /* time to decode a frame */
img = this->stream->video_out->get_frame (this->stream->video_out,