codec: Fix multi-threading support for OpenH264 1.6 or later

This commit is contained in:
Martin Fleisz 2017-05-05 12:37:27 +02:00
parent 068f61b4d4
commit 16111e7e7f

View File

@ -1010,6 +1010,8 @@ static int openh264_compress(H264_CONTEXT* h264, BYTE** ppDstData,
{
#if (OPENH264_MAJOR == 1) && (OPENH264_MINOR <= 5)
sys->EncParamExt.sSpatialLayers[0].sSliceCfg.uiSliceMode = SM_AUTO_SLICE;
#else
sys->EncParamExt.sSpatialLayers[0].sSliceArgument.uiSliceMode = SM_FIXEDSLCNUM_SLICE;
#endif
}