From 53665996a2ae6a4866b81e80b88cd7d2e30fd5bc Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Fri, 5 Nov 2010 12:42:57 +0100 Subject: [PATCH] b/f: no rtpmap line if no encoding name given --- core/AmSdp.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/AmSdp.cpp b/core/AmSdp.cpp index cbac63bd..97df11f4 100644 --- a/core/AmSdp.cpp +++ b/core/AmSdp.cpp @@ -193,7 +193,10 @@ void AmSdp::print(string& body) const out_buf += " " + int2str(pl_it->payload_type); - // "a=rtpmap:" line + if (pl_it->encoding_name.empty()) // don't add rtpmap if no encoding name given + continue; + + // "a=rtpmap:" line options += "a=rtpmap:" + int2str(pl_it->payload_type) + " " + pl_it->encoding_name + "/" + int2str(pl_it->clock_rate);