Hi expert,
I have difficulties in integrating mpeg2 decoder in my framework. The lib version is 02.02.00.02. And the platform
used here is c6678. I run it on the corepac0. When I run the TestAppDecoder (unit test program), it can work well. But
after I integrate in my application and run. The process function return error.
retVal = ividDecFxns->process((IVIDDEC2_Handle)handle, &inputBufDesc2, &outputBufDesc, dec_inargs, dec_outargs);
retVal is -1.
So I run
ividDecFxns->control(handle, XDM_GETSTATUS, dec_dynpar, dec_status);
to get error status, And the
dec_status->extendedError = 0x00000402
So I refer to the datasheet, and find that bit 10 means "XDM_INSUFFICIENTDATA"
And "2" means : MPEG2VDEC_ERROR_bitstream_Overrun
It seems that I have feed insufficient data to the codec. But I can ensure that I have feed enough data to
codec already. The dec_inargs->numBytes = 0x4000, the same value can work well in the unit test (TestAppDecoder) program. And also I can make sure that the input data has all be put into the inputbuffer.
So can you help me check this issue? What is the possible reason cause the error?
Thanks a lot!
B.R.
Sunzhao