mirror of
https://github.com/mpromonet/v4l2rtspserver
synced 2024-11-06 03:20:22 +00:00
add VP8 case to make some tests
This commit is contained in:
parent
2c4c64c0bb
commit
7d590d7d3c
@ -30,6 +30,7 @@ FramedSource* BaseServerMediaSubsession::createSource(UsageEnvironment& env, Fra
|
||||
switch (format)
|
||||
{
|
||||
case V4L2_PIX_FMT_H264 : source = H264VideoStreamDiscreteFramer::createNew(env, videoES); break;
|
||||
case V4L2_PIX_FMT_VP8 : source = videoES; break;
|
||||
}
|
||||
return source;
|
||||
}
|
||||
@ -40,6 +41,7 @@ RTPSink* BaseServerMediaSubsession::createSink(UsageEnvironment& env, Groupsock
|
||||
switch (format)
|
||||
{
|
||||
case V4L2_PIX_FMT_H264 : videoSink = H264VideoRTPSink::createNew(env, rtpGroupsock,rtpPayloadTypeIfDynamic); break;
|
||||
case V4L2_PIX_FMT_VP8 : videoSink = VP8VideoRTPSink::createNew(env, videoES); break;
|
||||
}
|
||||
return videoSink;
|
||||
}
|
||||
|
@ -29,7 +29,6 @@
|
||||
// live555
|
||||
#include <BasicUsageEnvironment.hh>
|
||||
#include <GroupsockHelper.hh>
|
||||
#include <Base64.hh>
|
||||
|
||||
// project
|
||||
#include "logger.h"
|
||||
|
Loading…
Reference in New Issue
Block a user