summaryrefslogtreecommitdiff
path: root/src/libxinevdec/svq1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libxinevdec/svq1.c')
-rw-r--r--src/libxinevdec/svq1.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libxinevdec/svq1.c b/src/libxinevdec/svq1.c
index 63979be36..6c93eb1ab 100644
--- a/src/libxinevdec/svq1.c
+++ b/src/libxinevdec/svq1.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: svq1.c,v 1.31 2004/01/12 17:35:19 miguelfreitas Exp $
+ * $Id: svq1.c,v 1.32 2004/02/09 22:04:11 jstembridge Exp $
*/
#include <stdio.h>
@@ -1327,9 +1327,12 @@ static void svq1dec_decode_data (video_decoder_t *this_gen, buf_element_t *buf)
if (buf->decoder_flags & BUF_FLAG_PREVIEW)
return;
- if (buf->decoder_flags & BUF_FLAG_STDHEADER) {
- this->video_step = buf->decoder_info[1];
+ 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) {
if (this->buf)
free (this->buf);
this->bufsize = VIDEOBUFSIZE;
@@ -1353,9 +1356,6 @@ static void svq1dec_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;