Skip to content
Snippets Groups Projects
Commit ecf1571e authored by François Cartegnie's avatar François Cartegnie :fingers_crossed: Committed by Jean-Baptiste Kempf
Browse files

access: rtp: fix null deref on missing codec parameters

parent a0d6edda
No related branches found
No related tags found
1 merge request!2987access: rtp: fix null deref on missing codec parameters
Pipeline #293993 passed with stages
in 29 minutes and 42 seconds
......@@ -368,6 +368,9 @@ static int rtp_h264_open(vlc_object_t *obj, struct vlc_rtp_pt *pt,
{
VLC_UNUSED(obj);
if(!desc->parameters)
return VLC_ENOTSUP;
const char *psz = strstr(desc->parameters, "packetization-mode=");
if(!psz || psz[19] == '\0' || atoi(&psz[19]) > 1)
return VLC_ENOTSUP;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment