int i_mtu;
vlc_bool_t b_auto_mtu;
-
+
/* rtp only */
int i_sequence_number;
};
i_bind_port = atoi( psz_parser );
}
}
-
}
psz_server_addr = psz_name;
/* Keep track of RTP sequence number */
p_sys->i_sequence_number = -1;
-
+
return VLC_SUCCESS;
}
int i_payload_type;
int i_skip = 0;
int i_sequence_number = 0;
-
+
if( p_block == NULL )
return NULL;
-
+
if( p_block->i_buffer < RTP_HEADER_LEN )
goto trash;
/* Return the packet without the RTP header. */
p_block->i_buffer -= i_skip;
p_block->p_buffer += i_skip;
-
+
#define RTP_SEQ_NUM_SIZE 65536
/* Detect RTP packet loss through tracking sequence numbers.
* See RFC 1889. */
if( p_access->p_sys->i_sequence_number == -1 )
p_access->p_sys->i_sequence_number = i_sequence_number;
-
+
if( ((p_access->p_sys->i_sequence_number + 1) % RTP_SEQ_NUM_SIZE) != i_sequence_number )
{
msg_Warn( p_access, "RTP packet(s) lost, expected sequence number %d got %d",