openh264: fix for mac, IDR frames

This commit is contained in:
Jay Sorg 2024-11-14 20:28:30 -08:00
parent 8743ac19fb
commit 6d112a519a

View File

@ -179,6 +179,8 @@ xrdp_encoder_openh264_encode(void *handle, int session, int left, int top,
encParamExt.iRCMode = RC_OFF_MODE;
encParamExt.bEnableFrameSkip = 0;
encParamExt.iSpatialLayerNum = 1;
/* defaults to INCREASING_ID, Mac client needs CONSTANT_ID */
encParamExt.eSpsPpsIdStrategy = CONSTANT_ID;
slc = encParamExt.sSpatialLayers + 0;
slc->fFrameRate = encParamExt.fMaxFrameRate;
slc->iVideoWidth = encParamExt.iPicWidth;