Browse Source

Merge pull request #241 from in2core/bugfix/parsing-encParams

encParams should not contain '/ '
Paul-Louis Ageneau 4 years ago
parent
commit
556104e8d5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/description.cpp

+ 2 - 1
src/description.cpp

@@ -1,6 +1,7 @@
 /**
  * Copyright (c) 2019-2020 Paul-Louis Ageneau
  * Copyright (c) 2020 Staz M
+ * Copyright (c) 2020 Filip Klembara (in2core)
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -754,7 +755,7 @@ Description::Media::RTPMap::RTPMap(string_view mline) {
 		this->clockRate = to_integer<int>(line);
 	else {
 		this->clockRate = to_integer<int>(line.substr(0, spl));
-		this->encParams = line.substr(spl);
+		this->encParams = line.substr(spl + 1);
 	}
 }