This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

problem with VIDDEC2_process

I have a sequence with P P P ... I frames in which P frame occurs before SPS and IDR.

When I decode the first P frame by calling VIDDEC2_process(hVd->hDecode, &inBufDesc, &outBufDesc, &inArgs, &outArgs).

The VIDDEC2_process returns with outArgs.outBufsInUseFlag = 1.

I found the following from user guide:

outBufsInUseFlag - Flag to indicate that the outBufs provided with the process() call are in use. No outBufs are required to be supplied with the next process() call.

So my question is, what should I do in next process?

I have tried the following, all fails.

A. VIDDEC2_process(hVd->hDecode, &inBufDesc, NULL, &inArgs, &outArgs)

B.

outBufDesc.numBufs = 0;

VIDDEC2_process(hVd->hDecode, &inBufDesc, &outBufDesc, &inArgs, &outArgs)

C.

outBufDesc.bufs = NULL;

VIDDEC2_process(hVd->hDecode, &inBufDesc, &outBufDesc, &inArgs, &outArgs)