Commit f0cf0abd authored by Laurent Aimar's avatar Laurent Aimar Committed by Christophe Mutricy

Partially revert 497a6b5b as it creates infinite loops with avformat.

I am not sure that the reverted part was really intented.
Reported by Jonathan Brossard, iViZ Techno Solutions Pvt. Ltd.
(cherry picked from commit c84de2ba)
Signed-off-by: default avatarChristophe Mutricy <xtophe@videolan.org>
parent 03eb7a26
......@@ -523,8 +523,12 @@ static int64_t IOSeek( void *opaque, int64_t offset, int whence )
return -1;
}
if( i_absolute < 0 )
i_absolute = 0;
{
msg_Dbg( p_demux, "Trying to seek before the beginning" );
return -1;
}
if( i_size > 0 && i_absolute >= i_size )
{
......
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