Commit 5adfe5b9 authored by Clément Stenac's avatar Clément Stenac

Fix segfault in RTSP mode

parent 520b91ef
...@@ -389,7 +389,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -389,7 +389,7 @@ static int Open( vlc_object_t *p_this )
char *psz_rtpmap; char *psz_rtpmap;
char access[100]; char access[100];
char url[strlen( p_sys->psz_destination ) + 1 + 12 + 1]; char url[p_sys->psz_destination ? strlen( p_sys->psz_destination ) + 1 + 12+1 : 14];
/* Check muxer type */ /* Check muxer type */
if( !strncasecmp( val.psz_string, "ps", 2 ) || !strncasecmp( val.psz_string, "mpeg1", 5 ) ) if( !strncasecmp( val.psz_string, "ps", 2 ) || !strncasecmp( val.psz_string, "mpeg1", 5 ) )
......
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