Skip to content

Commit

Permalink
openh264: fix for mac, IDR frames
Browse files Browse the repository at this point in the history
  • Loading branch information
jsorg71 committed Nov 15, 2024
1 parent 8743ac1 commit 6d112a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xrdp/xrdp_encoder_openh264.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6d112a5

Please sign in to comment.