When decoding H.264/MPEG4 live video using DMAI, there is a function " Vdec2_process(hDecoder, hInBuf, hDstBuf) " , where hInBuf is a buffer built for live video data, and decoded data is put into hDstBuf.
The size of hInBuf should be Vdec2_getInBufSize(hDecoder) or more, so we have to fill enough live video data with hInBuf , which means waiting a enough time dalta to get the enough data. This result in a around 4 secs datency.
How to decrease the latency as less as possible ?