Merge pull request #611 from mstorsjo/test-multithreading
Explicitly request 2 threads when testing slice threading
This commit is contained in:
commit
d8080adb4c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user