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:
commit
0679a91236
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user