Commit c84de2ba authored by Laurent Aimar's avatar Laurent Aimar

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.
parent e20540fd
......@@ -676,8 +676,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