diff --git a/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_hw.cpp b/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_hw.cpp index 633af33d33..788de13f28 100644 --- a/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_hw.cpp +++ b/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_hw.cpp @@ -2688,7 +2688,8 @@ mfxStatus ImplementationAvc::AsyncRoutine(mfxBitstream * bs) } } - task->m_singleFieldMode = IsOn(extFeiParams->SingleFieldProcessing); + // In case of progressive frames in PAFF mode need to switch the flag off to prevent m_fieldCounter changes + task->m_singleFieldMode = (task->m_fieldPicFlag != 0) && IsOn(extFeiParams->SingleFieldProcessing); for (mfxU32 f = 0; f <= task->m_fieldPicFlag; f++)