Commit 37312a8b authored by Laurent Aimar's avatar Laurent Aimar

* avi : don't resynch on key frame for audio stream.

parent 7e1d4d17
...@@ -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.49 2003/05/26 14:59:37 hartman Exp $ * $Id: avi.c,v 1.50 2003/06/24 00:50:52 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
...@@ -1725,13 +1725,15 @@ static int AVI_StreamSeek( input_thread_t *p_input, ...@@ -1725,13 +1725,15 @@ static int AVI_StreamSeek( input_thread_t *p_input,
return VLC_EGENERIC; return VLC_EGENERIC;
} }
/* search key frame */
msg_Dbg( p_input, msg_Dbg( p_input,
"old:"I64Fd" %s new "I64Fd, "old:"I64Fd" %s new "I64Fd,
i_oldpts, i_oldpts,
i_oldpts > i_date ? ">" : "<", i_oldpts > i_date ? ">" : "<",
i_date ); i_date );
if( p_stream->i_cat == VIDEO_ES )
{
/* search key frame */
if( i_date < i_oldpts ) if( i_date < i_oldpts )
{ {
while( p_stream->i_idxposc > 0 && while( p_stream->i_idxposc > 0 &&
...@@ -1761,6 +1763,7 @@ static int AVI_StreamSeek( input_thread_t *p_input, ...@@ -1761,6 +1763,7 @@ static int AVI_StreamSeek( input_thread_t *p_input,
} }
} }
} }
}
else else
{ {
if( AVI_SetStreamBytes( p_input, if( AVI_SetStreamBytes( p_input,
......
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