Here comes a problem related to the example sample_decode.
When the sample_decode was called to decode 1080p video stream, I found that lots of memory (about 90Mb) would be occured and when 10 streams were decoded parallel the situation would be 1Gb occured, memory consumption seems to be increasing linearity.
Is this situation abnormal ? Am I called the example without dispatching appropriately ? If there's any reasonable plan for multi-decoding in one single process to decrease the memory consumption? that's what makes me confused.
It seems that these functions make more memory consumption than I expect :
m_pMFXAllocator->Alloc //Alloc frames for decoder
m_pmfxDEC->Init // MFXVideoDECODE_Init
We have a open memory leak issue with sample_decode when initialized for multi-decode. The main reason is originally sample_decode was not designed for multi-decoding in loop. I will update with a fix/workaround soon.