Skip to content

Commit

Permalink
Fix Erizo SDP parser (lynckia#1056)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcague authored Oct 17, 2017
1 parent 1c7fd1d commit 7c7e2ae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion erizo/src/erizo/SdpInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -854,9 +854,11 @@ namespace erizo {
std::string value = "none";
if (key_value.size() == 1) {
value = key_value[0];
} else {
} else if (key_value.size() == 2) {
option = key_value[0];
value = key_value[1];
} else {
continue;
}

ELOG_DEBUG("message: Parsing format parameter, option: %s, value: %s, PT: %u",
Expand Down
2 changes: 1 addition & 1 deletion erizo/src/test/assets/Chrome.sdp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ a=sendrecv
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10_
a=fmtp:111 minptime=10; useinbandfec=1;
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
Expand Down
1 change: 0 additions & 1 deletion extras/docker/initDockerLicode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ run_erizoAgent() {
run_basicExample() {
echo "Starting basicExample"
sleep 5
cp $ROOT/erizo_controller/erizoClient/dist/erizo.js $EXTRAS/basic_example/public/
cp $ROOT/nuve/nuveClient/dist/nuve.js $EXTRAS/basic_example/
cd $EXTRAS/basic_example
node basicServer.js &
Expand Down

0 comments on commit 7c7e2ae

Please sign in to comment.