Commit d2392e8e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Silent hack to avoid crash when MTU is too small

parent ed0df23b
......@@ -374,6 +374,8 @@ static int Open( vlc_object_t *p_this )
var_GetInteger( p_access, SOUT_CFG_PREFIX "group" );
p_sys->i_mtu = var_CreateGetInteger( p_this, "mtu" );
if( p_sys->b_rtpts && ( p_sys->i_mtu < RTP_HEADER_LENGTH ) )
p_sys->i_mtu += RTP_HEADER_LENGTH;
srand( (uint32_t)mdate());
p_sys->p_buffer = NULL;
......
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