From 1d9a550ca85c35fc044f447eaeb613a993939d44 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 23 Sep 2010 13:05:33 +0200 Subject: [PATCH] ignore invalid payload types. Fixes #5919 --- src/common/jingle_rtp.py | 3 +++ 1 file changed, 3 insertions(+) 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: