Commit a2376bde authored by Laurent Aimar's avatar Laurent Aimar

Do not try to seeking beyond the end of stream in mmstu.

parent 397df13c
......@@ -362,6 +362,9 @@ static int Seek( access_t * p_access, int64_t i_pos )
i_packet = ( i_pos - p_sys->i_header ) / p_sys->i_packet_length;
i_offset = ( i_pos - p_sys->i_header ) % p_sys->i_packet_length;
}
if( p_sys->b_seekable && i_packet >= p_sys->i_packet_count )
return VLC_EGENERIC;
msg_Dbg( p_access, "seeking to %"PRId64 " (packet:%d)", i_pos, i_packet );
MMSStop( p_access );
......
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