Commit 21f58438 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix crash in SDP parser

parent 72c7ddfb
......@@ -1266,7 +1266,7 @@ static sdp_t *ParseSDP (vlc_object_t *p_obj, const char *psz_sdp)
expect = 'b';
if (cat == 'c')
{
struct sdp_media_t *m = p_sdp->mediav + p_sdp->mediac;
struct sdp_media_t *m = p_sdp->mediav + p_sdp->mediac - 1;
if (ParseSDPConnection (data, &m->addr, &m->addrlen,
&m->n_addr))
{
......
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