Fix vp9 setting in vie loopback test.
If vp9 codec was selected then videoCodec.codecSpecific.VP8.numberOfTemporalLayers was being set. TBR=stefan@webrtc.org BUG= Review URL: https://webrtc-codereview.appspot.com/37389004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7907 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
aaf02cc2d4
commit
d021bbbc9e
@ -427,13 +427,17 @@ int VideoEngineSampleCode(void* window1, void* window2)
|
|||||||
|
|
||||||
// Set number of temporal layers.
|
// Set number of temporal layers.
|
||||||
std::cout << std::endl;
|
std::cout << std::endl;
|
||||||
std::cout << "Choose number of temporal layers (1 to 4).";
|
std::cout << "Choose number of temporal layers for VP8 (1 to 4). ";
|
||||||
std::cout << "Press enter for default: \n";
|
std::cout << "Press enter for default (=1) for other codecs: \n";
|
||||||
std::getline(std::cin, str);
|
std::getline(std::cin, str);
|
||||||
int numTemporalLayers = atoi(str.c_str());
|
int numTemporalLayers = atoi(str.c_str());
|
||||||
if(numTemporalLayers != 0)
|
if (numTemporalLayers != 0 &&
|
||||||
{
|
videoCodec.codecType == webrtc::kVideoCodecVP8) {
|
||||||
videoCodec.codecSpecific.VP8.numberOfTemporalLayers = numTemporalLayers;
|
videoCodec.codecSpecific.VP8.numberOfTemporalLayers = numTemporalLayers;
|
||||||
|
} else if (videoCodec.codecType == webrtc::kVideoCodecVP9) {
|
||||||
|
// Temporal layers for vp9 not yet supported in webrtc.
|
||||||
|
numTemporalLayers = 1;
|
||||||
|
videoCodec.codecSpecific.VP9.numberOfTemporalLayers = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set start bit rate
|
// Set start bit rate
|
||||||
|
Loading…
x
Reference in New Issue
Block a user