MT#61822 fix possible NULL dereference

Change-Id: Id06c237482d25c6a517208dea29ca1c7542265e6
pull/1897/head
Richard Fuchs 4 months ago
parent 30b42d8d19
commit ff7d2aa686

@ -3867,6 +3867,9 @@ static bool __ssrc_handler_decode_common(struct codec_ssrc_handler *ch, struct c
static struct ssrc_entry *__ssrc_handler_transcode_new(void *p) {
struct codec_handler *h = p;
if (!h->source_pt.codec_def || !h->dest_pt.codec_def)
return NULL;
ilogs(codec, LOG_DEBUG, "Creating SSRC transcoder from %s/%u/%i to "
"%s/%u/%i",
h->source_pt.codec_def->rtpname, h->source_pt.clock_rate,

Loading…
Cancel
Save