Skip to content
Snippets Groups Projects
Commit 7adc0c3e authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#1755] fix audiocodec folder parsing problem

parent 99150cf0
No related branches found
No related tags found
No related merge requests found
......@@ -37,16 +37,27 @@ public:
// If g722 (payload 9), we need to init libccrtp symetric sessions with using
// dynamic payload format. This way we get control on rtp clockrate.
if(_payload = 9)
if(_payload == 9)
{
_hasDynamicPayload = true;
}
}
AudioCodec( const AudioCodec& codec )
: _codecName(codec._codecName), _clockRate(codec._clockRate), _channel(codec._channel), _bitrate(codec._bitrate),_bandwidth(codec._bandwidth),_payload(codec._payload), _hasDynamicPayload(false),_state(true) {
_hasDynamicPayload = (_payload >= 96 && _payload <= 127) ? true : false;
// If g722 (payload 9), we need to init libccrtp symetric sessions with using
// dynamic payload format. This way we get control on rtp clockrate.
if(_payload == 9)
{
_hasDynamicPayload = true;
}
}
virtual ~AudioCodec() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment