MFXVideoDECODE_DecodeHeader in windows returning unknown error most of time
I am trying to create a decoder using libmfx. Overview of application:
Executable ==> intermediary.dll ==> webrtc_codec.lib == > webrtc_h264.lib(decoder is here)
1. Fill stream in a mfxBitstream structure.
2. Call MFXVideoDECODE_DecodeHeader and it returns unknown error.
Same code flow works in sample application with same bitstream but on our executable it fails. we are suspecting that issue could be due to the way we are linking with h264 lib. Please help in debugging this issue more by enabling some logs or any debug code you want to insert then I can help.