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.

Alg question

hi TI friends,

dm8168,rdk3.0,  I check the following

Int32 Vcap_getAlgResultBuffer(VALG_FRAMERESULTBUF_LIST_S *pBitsBufList, UInt32 timeout)
{
Bitstream_BufList ipcBufList;
Bitstream_Buf *pInBuf;
VALG_FRAMERESULTBUF_S *pOutBuf;
UInt32 i;

VCAP_TRACE_FXN_ENTRY();
pBitsBufList->numBufs = 0;
ipcBufList.numBufs = 0;

IpcBitsInLink_getFullVideoBitStreamBufs(gVcapModuleContext.ipcBitsInHLOSId,
&ipcBufList);


pBitsBufList->numBufs = ipcBufList.numBufs;

for (i = 0; i < ipcBufList.numBufs; i++)
{
pOutBuf = &pBitsBufList->bitsBuf[i];
pInBuf = ipcBufList.bufs[i];

Vcap_copyBitBufInfoLink2McFw(pOutBuf,pInBuf);
}

VCAP_TRACE_FXN_EXIT("NumBufs Received:%d",pBitsBufList->numBufs);
return 0;
}

and I found 

maximum size of "pBitsBufList->bitsBuf"  is 16

maximum size of "ipcBufList.bufs" is 64

the  ipcBufList.numBufs may over 16 under some condition and this may cause segmentation fault in rdk 3.0 and 3.5.

Could you help to solve the issue?