diff options
author | Benny Prijono <bennylp@teluu.com> | 2011-11-30 09:34:33 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2011-11-30 09:34:33 +0000 |
commit | 9ad8beaa148c78e04a2aac3c5ad6d85567d31b01 (patch) | |
tree | 0067a8caea170b440b537b01efdf5967e2cc2a23 | |
parent | 52da2dd0b10a9390d0c1b02f428dbe8f2c03324f (diff) |
Fixed problem with selecting audio codec if rtpmap is omitted from the SDP for the static PT (re #1393, thanks Régis Montoya for the fix!)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3890 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjmedia/src/pjmedia/stream.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pjmedia/src/pjmedia/stream.c b/pjmedia/src/pjmedia/stream.c index 1da09c70..52a6a73c 100644 --- a/pjmedia/src/pjmedia/stream.c +++ b/pjmedia/src/pjmedia/stream.c @@ -2833,6 +2833,12 @@ static pj_status_t get_audio_codec_info_param(pjmedia_stream_info *si, return PJMEDIA_EINVALIDPT; pt = pj_strtoul(&local_m->desc.fmt[fmti]); + if (pt < 96) { + /* This is known static PT. Skip rtpmap checking because it is + * optional. */ + break; + } + attr = pjmedia_sdp_media_find_attr(local_m, &ID_RTPMAP, &local_m->desc.fmt[fmti]); if (attr == NULL) |