Browse Source

TT#89352 ignore format of codecs we don't know

Change-Id: I0731c6c4697f322a9cdea8d2adade50cde9fe446
pull/1346/head
Richard Fuchs 4 years ago
parent
commit
c2b93e74b7
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      lib/rtplib.c

+ 2
- 0
lib/rtplib.c View File

@ -149,6 +149,8 @@ int rtp_payload_type_cmp(const struct rtp_payload_type *a, const struct rtp_payl
if (a->codec_def->format_cmp)
return a->codec_def->format_cmp(a, b);
}
if (!a->codec_def) // ignore format of codecs we don't know
return 0;
if (str_cmp_str(&a->format_parameters, &b->format_parameters))
return 1;
return 0;


Loading…
Cancel
Save