HI
I am using dvrrdk4.0, and got some problem during decoding.
My link:
H264File -> decode -> SwMs -> display
Getting h264 is as follow:
while(1)
{
...
ret = IpcBitsOutLink_getEmptyVideoBitStreamBufs(SYSTEM_HOST_LINK_ID_IPC_BITS_OUT_0, &bufList, &reqInfo);
if (IPC_BITSOUT_LINK_S_SUCCESS != ret){
fprintf(stderr, "get buffer failed, return %d, size %d\n", ret, size);
continue;
}
if (1 != bufList.numBufs){
fprintf(stderr, "get buffer failed, bufList.numBufs %d, size %d\n", bufList.numBufs, size);//alawy failed when setting USER_DECODE_INTERVAL_TIME = 10ms
continue;
}else{
break;
}
...
OSA_waitMsecs(USER_DECODE_INTERVAL_TIME);
}
...
ret = IpcBitsOutLink_putFullVideoBitStreamBufs(SYSTEM_HOST_LINK_ID_IPC_BITS_OUT_0, &bufList);
...
if I Set USER_DECODE_INTERVAL_TIME = 30ms(20ms or 17ms),the chains run normally;
if I set USER_DECODE_INTERVAL_TIME = 10ms, it alawy get buffer failed by IpcBitsOutLink_getEmptyVideoBitStreamBufs return fail and it can't get it normal by setting USER_DECODE_INTERVAL_TIME = 30ms again.
what is reason for this?
Any help is appreciated, thankx