提交 6a9ebc5e authored 作者: Michael Jerris's avatar Michael Jerris

don't assert when the impossible happens (or did we get an sdp with no m= lines?

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14940 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 c7620f6b
Thu Jul 9 19:53:33 CDT 2009
Mon Sep 21 14:27:58 CDT 2009
......@@ -778,7 +778,8 @@ int soa_sdp_upgrade(soa_session_t *ss,
continue;
if (j >= Nu) /* lines removed from user SDP */
continue;
assert(i < Ns);
if (i >= Ns) /* I should never be called but somehow i and Ns are 0 here sometimes */
continue;
s_media[i] = u_media[j], u_media[j] = SDP_MEDIA_NONE;
u2s[j] = i, s2u[i] = j;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论