Commit 52182a28 authored by Laurent Aimar's avatar Laurent Aimar

* avi : fix play back for some broken avi

parent 437957ac
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* avi.c : AVI file Stream input module for vlc * avi.c : AVI file Stream input module for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: avi.c,v 1.32 2003/01/25 17:57:36 fenrir Exp $ * $Id: avi.c,v 1.33 2003/01/26 12:34:47 fenrir Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr> * Authors: Laurent Aimar <fenrir@via.ecp.fr>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
...@@ -1744,7 +1744,7 @@ static int AVIDemux_Seekable( input_thread_t *p_input ) ...@@ -1744,7 +1744,7 @@ static int AVIDemux_Seekable( input_thread_t *p_input )
mtime_t i_date; mtime_t i_date;
int i_percent; int i_percent;
/* first wait for empty buffer, arbitrary time FIXME */ /* first wait for empty buffer, arbitrary time FIXME */
// msleep( DEFAULT_PTS_DELAY ); msleep( DEFAULT_PTS_DELAY );
i_date = (mtime_t)1000000 * i_date = (mtime_t)1000000 *
(mtime_t)p_avi->i_length * (mtime_t)p_avi->i_length *
...@@ -1995,6 +1995,7 @@ static int AVIDemux_Seekable( input_thread_t *p_input ) ...@@ -1995,6 +1995,7 @@ static int AVIDemux_Seekable( input_thread_t *p_input )
if( input_ReadInPES( p_input, &p_pes, __EVEN( i_size ) ) < 0 ) if( input_ReadInPES( p_input, &p_pes, __EVEN( i_size ) ) < 0 )
{ {
msg_Warn( p_input, "failled reading data" ); msg_Warn( p_input, "failled reading data" );
AVI_StreamStop( p_input, p_avi, i_stream );
toread[i_stream].b_ok = VLC_FALSE; toread[i_stream].b_ok = VLC_FALSE;
continue; continue;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment