Skip to content

Commit

Permalink
Improve backchannel feature
Browse files Browse the repository at this point in the history
  • Loading branch information
roleoroleo committed Sep 12, 2024
1 parent c1e3e94 commit 5679240
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rRTSPServer/src/OnDemandServerMediaSubsession_BC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,11 @@ char* OnDemandServerMediaSubsession_BC::getRtpMapLine(RTPSource* rtpSource) cons
}
char const* const rtpmapFmt = "a=rtpmap:%d %s/%d%s\r\n";
unsigned rtpmapFmtSize = strlen(rtpmapFmt)
+ 3 /* max char len */ + strlen("MPEG4-GENERIC")
+ 3 /* max char len */ + strlen("mpeg4-generic")
+ 20 /* max int len */ + strlen(encodingParamsPart);
char* rtpmapLine = new char[rtpmapFmtSize];
sprintf(rtpmapLine, rtpmapFmt,
rtpSource->rtpPayloadFormat(), "MPEG4-GENERIC",
rtpSource->rtpPayloadFormat(), "mpeg4-generic",
rtpSource->timestampFrequency(), encodingParamsPart);
delete[] encodingParamsPart;

Expand Down Expand Up @@ -389,7 +389,7 @@ ::setSDPLinesFromMediaSink(RTPSource* rtpSource, MediaSink* mediaSink, unsigned
"%s"
"%s"
"%s"
"a=sendonly;\r\n"
"a=sendonly\r\n"
"a=control:%s\r\n";
unsigned sdpFmtSize = strlen(sdpFmt)
+ strlen(mediaType) + 5 /* max short len */ + 3 /* max char len */
Expand Down

0 comments on commit 5679240

Please sign in to comment.