Hello Everybody,<br><br>Hi Gimli,<br><br><br>I was trying to make a video player using Cedar Lib.<br><br>I have tested lib from two sources.<br><br><a href="https://github.com/amery/allwinner-a10-video" target="_blank">https://github.com/amery/allwinner-a10-video</a> <br>
<a href="https://dl.dropbox.com/u/65312725/a10_decoder.tar.gz" target="_blank">https://dl.dropbox.com/u/65312725/a10_decoder.tar.gz</a><br><br><br>I am able to decode raw H264 frames using hardware codec and display on screen.<br>
In-fact there is full demo with a10_decoder.tar.gz .<br>But there is really a very very big issue. That is memory leak. <br>There is huge memory leak possibly with each frame displayer. If I try to play full hd video in 2 min it eats up all memory approx 320MB.<br>
I have tested and ensured that memory leak is not my side code but in library or kernel side.<br><br><br>I try to trace program with strace. Like strace -e mmap2 ./VideoPlayer<br>Another wonder is there is not mmpa2 call whiche playing video it&#39;s only on startup. But when I watch memory with &quot;top&quot; command i can see contentious memory loss.<br>
<br><br>I check in Cedar driver side there is only three calls of kmalloc which is also in init.<br><br><br>I really can&#39;t figure out way how to proceed.<br><br><br>So based on above information some question.<br><br>
1   Is there any new lib released from Allwinner where memory leak is fixed. May be for XBMC development.<br>2   Is there any other way to allocate memory besides mmap2 ?<br>3   Any other possibility to identify and fix memory leak.<br>
<br><br clear="all"><br>-- <br>Thanks &amp; Regards<br><br>Piyush Verma<br><br><br>