Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.
2946 Discussions

MFXVideoCORE_SyncOperation is returning MFX_ERR_UNDEFINED_BEHAVIOR


We are developing a decoder based application and we are facing an issue. The issue is similar to this post but we are using only Intel decoder.

We are referring “mediasdk-man.pdf” for our application development. We are following the steps given in “Example 1: Decoding Pseudo Code” for decoding operation. The issue is that when we call “SyncOperation()” API, it is returning “MFX_ERR_UNDEFINED_BEHAVIOR”. We are not able to find-out what is causing this error. There is no error during initialization of the decoder and “DecodeFrameAsync()” API is returning MFX_ERR_NONE.

Could someone help us to understand what is going wrong here? We printed the buffer addresses and they are proper.

0 Kudos
1 Reply

Hi Mayur,

Since there is no source code and error messages, I can't tell what the problem is,

Here are some general glue to the problem,

  1. Refer to tutorial and sample code for the API programming, tutorial is simple but might have bugs, sample is accurate but might be complicated.
  2. You can build our open source media stack for debugging purpose.
  3. Starting from a working code, and moving toward to your current configuration, then you can figure out which parameter causes the problem