[vlc-devel] [PATCH 1/2] rtsp: ensure session ID is at least 8 bytes
Rémi Denis-Courmont
remi at remlab.net
Thu Sep 12 19:46:54 CEST 2019
Le torstaina 5. syyskuuta 2019, 20.43.44 EEST Alexandre Janniaux a écrit :
> ---
> modules/stream_out/rtsp.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/modules/stream_out/rtsp.c b/modules/stream_out/rtsp.c
> index 6161f6a795..3053dff3c6 100644
> --- a/modules/stream_out/rtsp.c
> +++ b/modules/stream_out/rtsp.c
> @@ -808,8 +808,9 @@ static int RtspHandler( rtsp_stream_t *rtsp,
> rtsp_stream_id_t *id,
>
> if( psz_session == NULL )
> {
> - /* Create a dummy session ID */
> - snprintf( psz_sesbuf, sizeof( psz_sesbuf ), "%lu",
> + /* Create a dummy session ID. We use it for RTP so
> make + * sure the length is at least 8 bytes. */
I don't see what the session ID has to do with RTP.
> +
> snprintf( psz_sesbuf, sizeof( psz_sesbuf ), "%"
> PRIu64, vlc_mrand48() );
> psz_session = psz_sesbuf;
> }
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list