fix #198: give the 8 paremeters to RawVideoRTPSink::createNew using the new ordering

pull/214/head
mpromonet 4 years ago
parent 820c8e4637
commit de5a846747

@ -75,7 +75,7 @@ RTPSink* BaseServerMediaSubsession::createSink(UsageEnvironment& env, Groupsock
{
videoSink = JPEGVideoRTPSink::createNew (env, rtpGroupsock);
}
#if LIVEMEDIA_LIBRARY_VERSION_INT >= 1536192000
#if LIVEMEDIA_LIBRARY_VERSION_INT >= 1596931200
else if (format =="video/RAW")
{
std::string sampling;
@ -84,7 +84,7 @@ RTPSink* BaseServerMediaSubsession::createSink(UsageEnvironment& env, Groupsock
case V4L2_PIX_FMT_YUYV: sampling = "YCbCr-4:2:2"; break;
case V4L2_PIX_FMT_UYVY: sampling = "YCbCr-4:2:2"; break;
}
videoSink = RawVideoRTPSink::createNew(env, rtpGroupsock, rtpPayloadTypeIfDynamic, source->getHeight(), source->getWidth(), 8, sampling.c_str());
videoSink = RawVideoRTPSink::createNew(env, rtpGroupsock, rtpPayloadTypeIfDynamic, source->getWidth(), source->getHeight(), 8, sampling.c_str(),"BT709-2");
}
#endif
else if (format.find("audio/L16") == 0)

Loading…
Cancel
Save