Document possible parameters, don't add a newline to auxline

This commit is contained in:
Isaac Connor 2021-03-01 14:01:22 -05:00
parent 19d9812a3f
commit db13b4c3b6
1 changed files with 5 additions and 3 deletions

View File

@ -24,7 +24,9 @@ FramedSource* BaseServerMediaSubsession::createSource(
if (format == "video/MP2T") {
source = MPEG2TransportStreamFramer::createNew(env, inputSource);
} else if (format == "video/H264") {
source = H264VideoStreamDiscreteFramer::createNew(env, inputSource);
source = H264VideoStreamDiscreteFramer::createNew(env, inputSource
/*Boolean includeStartCodeInOutput, Boolean insertAccessUnitDelimiters*/
);
}
#if LIVEMEDIA_LIBRARY_VERSION_INT > 1414454400
else if (format == "video/H265") {
@ -94,9 +96,9 @@ char const* BaseServerMediaSubsession::getAuxLine(
std::ostringstream os;
os << "a=fmtp:" << int(rtpPayloadType) << " ";
os << source->getAuxLine();
os << "\r\n";
//os << "\r\n";
auxLine = strdup(os.str().c_str());
Debug(1, "auxLine: %s", auxLine);
Debug(1, "BaseServerMediaSubsession::auxLine: %s", auxLine);
} else {
Error("No source auxLine:");
return "";