sdp_msg.c: fix missing rate in sdp_audio_codecs_add()

When a new entry is is added by sdp_audio_codecs_add(), also add the
proper rate.

Change-Id: I17ad8862f662975e2df72a332eb83df7fb048cad
This commit is contained in:
Neels Hofmeyr 2023-03-04 03:56:46 +01:00
parent ed606b4271
commit 8ff00e775c
1 changed files with 1 additions and 0 deletions

View File

@ -154,6 +154,7 @@ struct sdp_audio_codec *sdp_audio_codecs_add(struct sdp_audio_codecs *ac, unsign
OSMO_STRLCPY_ARRAY(codec->subtype_name, subtype_name);
if (fmtp)
OSMO_STRLCPY_ARRAY(codec->fmtp, fmtp);
codec->rate = rate;
return codec;
}