I've converted transcode_VM(D3D) sample from C++ to C language calling the C level APIs. I've used same session to save context of Encoder and Decoder. In the Transcoding loop, first call to the function MFXVideoDECODE_DecodeFrameAsync returns MFX_ERR_UNDEFINED_BEHAVIOR.
I'm using Windows 7 with D3D9 device acceleration. Can someone help me with the error code.