diff --git a/src/common/jingle_rtp.py b/src/common/jingle_rtp.py index c5e7a0441..62ae337fa 100644 --- a/src/common/jingle_rtp.py +++ b/src/common/jingle_rtp.py @@ -246,6 +246,9 @@ class JingleRTPContent(JingleContent): codecs = [] for codec in content.getTag('description').iterTags('payload-type'): + if not codec['id'] or not codec['name'] or not codec['clockrate']: + # ignore invalid payload-types + continue c = farsight.Codec(int(codec['id']), codec['name'], self.farsight_media, int(codec['clockrate'])) if 'channels' in codec: