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/roqvideo.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/roqvideo.c')
-rw-r--r-- | src/libxinevdec/roqvideo.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libxinevdec/roqvideo.c b/src/libxinevdec/roqvideo.c index cfd4bbef1..7a316bfd6 100644 --- a/src/libxinevdec/roqvideo.c +++ b/src/libxinevdec/roqvideo.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: roqvideo.c,v 1.27 2004/01/12 17:35:19 miguelfreitas Exp $ + * $Id: roqvideo.c,v 1.28 2004/02/09 22:04:11 jstembridge Exp $ */ /* And this is the header that came with the RoQ video decoder: */ @@ -405,7 +405,6 @@ static void roqvideo_decode_data (video_decoder_t *this_gen, this->height = bih->biHeight; this->ratio = (double)this->width/(double)this->height; this->skipframes = 0; - this->video_step = buf->decoder_info[1]; this->current_planes = 0; this->y_size = this->width * this->height; @@ -442,8 +441,10 @@ static void roqvideo_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, |