I use multi-threaded implementation of media SDK2.0 sample_decode.
I would like to decode the different files at the same time.
However, the implementation will generate an error
The error is a memory to be modified
At first moment, seems that you have a problem with your multithread implementation, not with SDK...
Please give us more details, like where you got this error, what filters are you using, how they are connected...
1.Multi-threading can be implemented
2.It is normal for a thread.(The size of any resolutions)
3.8 threads about executable in a small resolutions(ex. 352x288).More than 8 threads will produce memory errors
4.2 threads about executable in a large resolutions(ex. 1280x1024).More than2 threads will produce memory errors
5.m_mfxBS.DataLength and m_mfxBS.Data dataare valid, but m_mfxBS.DataLength will be changed in the implementation of m_pmfxDEC->DecodeHeader
mfxStatus CDecodingPipeline::InitMfxParams(mfxU32 &numViews)
mfxStatus sts = MFX_ERR_NONE;
sts = m_pmfxDEC->DecodeHeader(&m_mfxBS, &m_mfxVideoParams);