obs-qsv: Enable b-pyramid & change packet priority

- Enable b-pyramid frames
- Adjust packet priority to avoid dropping referencable B frames

Closes obsproject/obs-studio#1520
This commit is contained in:
brittneysclark
2018-10-19 15:10:30 -07:00
committed by jp9000
parent 5ff29c9d26
commit 33ff46a10e
2 changed files with 19 additions and 12 deletions

View File

@@ -266,8 +266,9 @@ bool QSV_Encoder_Internal::InitParams(qsv_param_t * pParams)
m_co2.MBBRC = MFX_CODINGOPTION_ON;
if (pParams->nRateControl == MFX_RATECONTROL_LA_ICQ ||
pParams->nRateControl == MFX_RATECONTROL_LA)
m_co2.LookAheadDepth = pParams->nLADEPTH;
if (pParams->nbFrames > 1)
m_co2.BRefType = MFX_B_REF_PYRAMID;
extendedBuffers[iBuffers++] = (mfxExtBuffer*)& m_co2;
if (iBuffers > 0) {