shithub: openh264

Download patch

ref: d8080adb4ce6ebf06386dc367479fff6de9cc367
parent: c644879cf9785307e249f491c09136ad188e080b
parent: 411df4c75f6430bc76692e1774756d17c6ca6cf9
author: volvet <[email protected]>
date: Tue Apr 1 07:02:57 EDT 2014

Merge pull request #611 from mstorsjo/test-multithreading

Explicitly request 2 threads when testing slice threading

--- a/test/api/BaseEncoderTest.cpp
+++ b/test/api/BaseEncoderTest.cpp
@@ -31,6 +31,9 @@
     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);