diff --git a/_studio/mfx_lib/vpp/src/mfx_vpp_hw.cpp b/_studio/mfx_lib/vpp/src/mfx_vpp_hw.cpp index fde31237b0..8cd81ea93a 100755 --- a/_studio/mfx_lib/vpp/src/mfx_vpp_hw.cpp +++ b/_studio/mfx_lib/vpp/src/mfx_vpp_hw.cpp @@ -6003,7 +6003,7 @@ mfxStatus ConfigureExecuteParams( if (!executeParams.dstRects.empty()) { - if (executeParams.dstRects.size() < StreamCount) + if (executeParams.dstRects.capacity() < StreamCount) return MFX_ERR_INCOMPATIBLE_VIDEO_PARAM; }