Skip to content

Commit

Permalink
Add IDR flag for vp9 Key frames
Browse files Browse the repository at this point in the history
Signed-off-by: Yao, Leyu <[email protected]>
  • Loading branch information
leyu-yao committed Jan 29, 2024
1 parent 695d562 commit d259f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _studio/mfx_lib/encode_hw/vp9/src/mfx_vp9_encode_hw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ mfxStatus MFXVideoENCODEVP9_HW::UpdateBitstream(

// Update bitstream fields
task.m_pBitsteam->TimeStamp = task.m_timeStamp;
task.m_pBitsteam->FrameType = mfxU16(task.m_frameParam.frameType == KEY_FRAME ? MFX_FRAMETYPE_I : MFX_FRAMETYPE_P);
task.m_pBitsteam->FrameType = mfxU16(task.m_frameParam.frameType == KEY_FRAME ? (MFX_FRAMETYPE_I | MFX_FRAMETYPE_IDR) : MFX_FRAMETYPE_P);
task.m_pBitsteam->PicStruct = MFX_PICSTRUCT_PROGRESSIVE;

if (mfxExtAVCEncodedFrameInfo * encFrameInfo = GetExtBuffer(*(task.m_pBitsteam)))
Expand Down

0 comments on commit d259f46

Please sign in to comment.