Browse Source

Update src/description.cpp

Co-authored-by: Paul-Louis Ageneau <[email protected]>
Dw9 2 years ago
parent
commit
f0263735ec
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/description.cpp

+ 3 - 3
src/description.cpp

@@ -1087,10 +1087,10 @@ Description::Audio::Audio(string mid, Direction dir)
 
 void Description::Audio::addAudioCodec(int payloadType, string codec, optional<string> profile) {
 	if (codec.find('/') == string::npos){
-        if(0 == codec.compare("OPUS"))
-            codec += "/48000/2";
-        else if(0 == codec.compare("PCMA") || 0 == codec.compare("PCMU"))
+        if(codec == "PCMA" || codec == "PCMU")
             codec += "/8000/1";
+        else
+            codec += "/48000/2";
     }