From 9443e55c9cb8c277969e264673ce3d43796f6243 Mon Sep 17 00:00:00 2001 From: Alexey Tsarev Date: Sat, 26 Mar 2016 00:53:39 +0300 Subject: [PATCH] Fix: correctly returned number of aac channels --- .../thelib/src/protocols/rtp/basertspappprotocolhandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/thelib/src/protocols/rtp/basertspappprotocolhandler.cpp b/sources/thelib/src/protocols/rtp/basertspappprotocolhandler.cpp index dcebd9cd..8732a661 100644 --- a/sources/thelib/src/protocols/rtp/basertspappprotocolhandler.cpp +++ b/sources/thelib/src/protocols/rtp/basertspappprotocolhandler.cpp @@ -2096,8 +2096,8 @@ string BaseRTSPAppProtocolHandler::GetAudioTrack(RTSPProtocol *pFrom, } result += "m=audio 0 RTP/AVP 96\r\n"; result += "a=recvonly\r\n"; - result += format("a=rtpmap:96 mpeg4-generic/%"PRIu32"/2\r\n", - pInfo->_samplingRate); + result += format("a=rtpmap:96 mpeg4-generic/%"PRIu32"/%u\r\n", + pInfo->_samplingRate, pInfo->_channelsCount); pFrom->GetCustomParameters()["rtpInfo"]["audio"]["frequency"] = (uint32_t) pInfo->_samplingRate; //FINEST("result: %s", STR(result)); result += "a=control:trackID="