Merge pull request #3941 from mfleisz/fix_openh264_mt

codec: Fix multi-threading support for OpenH264 1.6 or later
This commit is contained in:
akallabeth 2017-05-08 10:17:27 +02:00 committed by GitHub
commit 0679a91236

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
}