When the implementation of the
sts = m_pmfxDEC->Init(&m_mfxVideoParams);
return value is -4 (MFX_ERR_MEMORY_ALLOC)
May I ask what factors produced this result?
In your case Intel Media SDK failed to allocate the memory required to create decoder surfaces.
Your system has likely run out of memory. You may try to free up some memory used by other applications or try other lower resolution workload, or expand your system with additonal RAM.Regards,Petter