Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

decoder return Dmai_EBITERROR, how to ignore it?

$
0
0

Hi,guys:

I am using DM365+DVSDK4.0.

My H264 stream comes from network and other interface, not filesystem. there are some lost package when send to decoder.

the stream is sent as "29 P frames + 1 IDR frame" repeatly. each frame is cut to several slice. So when I package the stream to frame, some frame may not contain enough

slice as encoded. But I will make sure params "SPS/PPS" in IDR is complete.

Here is the problem:

when Vdec2_process() return DMAI_BITERROR, not buffers will be sent to displsy thread, I ignore it and get next frame.

But at the next time , I found BufTab_getFreeBuf() will not return the previous buffer. it seems the codec donot release the hDstBuf, so when this error happens again for about 31 times, BufTab_getFreeBuf() will return NULL. At this moment , not buffer will be available, the application is dead.

So ,have you guys meet this problem? how can I let the codec release the buffer/ or handle this error?

thank you.


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>