Skip to content
Snippets Groups Projects
Commit d651ee5b authored by Romain Vimont's avatar Romain Vimont Committed by Romain Vimont
Browse files

rtp: fix initialization

The pointer pt->opaque was initialized only under some conditions in
rtp_h264_open(), but its value was used unconditionnaly in
rtp_h264_init().

Reported by ASAN.
parent f7803af5
No related branches found
No related tags found
1 merge request!1875rtp: fix initialization
Pipeline #217654 passed with stages
in 40 minutes and 3 seconds
......@@ -377,6 +377,7 @@ static int rtp_h264_open(vlc_object_t *obj, struct vlc_rtp_pt *pt,
else
return VLC_ENOTSUP;
pt->opaque = NULL;
if(desc->parameters)
{
psz = strstr(desc->parameters, "sprop-parameter-sets=");
......
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