Merge pull request #611 from mstorsjo/test-multithreading

Explicitly request 2 threads when testing slice threading
This commit is contained in:
volvet 2014-04-01 11:02:57 -07:00
commit d8080adb4c

View File

@ -31,6 +31,9 @@ static int InitWithParam(ISVCEncoder* encoder, int width,
param.iLoopFilterDisableIdc = deblock;
param.iSpatialLayerNum = layers;
if (sliceMode != SM_SINGLE_SLICE)
param.iMultipleThreadIdc = 2;
for (int i = 0; i < param.iSpatialLayerNum; i++) {
param.sSpatialLayers[i].iVideoWidth = width >> (param.iSpatialLayerNum - 1 - i);
param.sSpatialLayers[i].iVideoHeight = height >> (param.iSpatialLayerNum - 1 - i);