ignore invalid payload types. Fixes #5919

This commit is contained in:
Yann Leboulanger 2010-09-23 13:05:33 +02:00
parent 8ce99327bd
commit 1d9a550ca8
1 changed files with 3 additions and 0 deletions

View File

@ -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: