I'm trying to drain the last pair of stereo frames from the MVC decoder. According to the documentation I do:
At the end of the bitstream, the application continuously calls the MFXVideoDECODE_DecodeFrameAsync function with a NULL bitstream pointer to drain any remaining frames cached within the Intel Media SDK decoder, until the function returns MFX_ERR_MORE_DATA.
This works fine for a number of buffered AVC/MVC frame pairs, but not for the last pair. I get view 0, and afterwards error MFX_ERR_MODE_DATA which seems to tell me that no more frames are buffered and so view 1 is missing.
Input data are valid AVC/MVC frames, the two last frames (view 0/1) are each terminated by end of sequence 00 00 01 0A.
Is this a bug or am I missing something?