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;
+ p_sys->i_mtu = 576 - 20 - 8;
srand( (uint32_t)mdate());
p_sys->p_buffer = NULL;
* Module descriptor
*****************************************************************************/
-#define MTU_REDUCE 50
-
#define DST_TEXT N_("Destination")
#define DST_LONGTEXT N_( \
"This is the output URL that will be used." )
}
id->i_mtu = config_GetInt( p_stream, "mtu" ); /* XXX beurk */
- if( id->i_mtu <= 16 + MTU_REDUCE )
+ if( id->i_mtu <= 12 + 16 )
{
/* better than nothing */
id->i_mtu = 576 - 20 - 8;
}
- id->i_mtu -= MTU_REDUCE;
/* the access out grabber TODO export it as sout_AccessOutGrabberNew */
p_grab = p_sys->p_grab =
id->i_timestamp_start = rand()&0xffffffff;
id->i_bitrate = p_fmt->i_bitrate/1000; /* Stream bitrate in kbps */
- id->i_mtu = config_GetInt( p_stream, "mtu" ); /* XXX beuk */
- if( id->i_mtu <= 16 + MTU_REDUCE )
+ id->i_mtu = config_GetInt( p_stream, "mtu" ); /* XXX beuk */
+ if( id->i_mtu <= 12 + 16 )
{
/* better than nothing */
- id->i_mtu = 1500;
+ id->i_mtu = 576 - 20 - 8;
}
- id->i_mtu -= MTU_REDUCE;
msg_Dbg( p_stream, "maximum RTP packet size: %d bytes", id->i_mtu );
if( p_sys->rtsp != NULL )