Hi!<br><br>I tried it with an additional<br><br><span style="font-family:courier new,monospace">avcodec_flush_buffers(pCodecCtx);<br><br></span>and with only avcodec_close(), same effect :(<br><br>I wonder how I can free this strange buffers.<br>
Valgrind isn't complaining after closing the app, so that buffers are freed correctly.<br><br>I wrote a test app which plays 10 videos with 800x600 and the needed buffer is about 100MB, when I watch with pmap.<br><br>
After closing all videos the buffer is still 100MB<br><br>Does some static buffer exists somewhere?<br><br><br><br><div class="gmail_quote">2011/5/9 Kirill Gavrilov <span dir="ltr"><<a href="mailto:gavr.mail@gmail.com">gavr.mail@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex" class="gmail_quote">
I play lots of different videos, an every different video makes the allocated buffer bigger.<br>
</blockquote></div>I don't know but in my code also called<br><div style="margin-left:40px"><span style="font-family:courier new,monospace">avcodec_flush_buffers(pCodecCtx);</span><br></div>time to time when needed. But I think avcodec_close() should do that too...<br>

-----------------------------------------------<br><font color="#888888">Kirill Gavrilov,<br>Software designer.<br>
</font><br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><br clear="all"><br>-- <br>Ing. Robert Grasböck<br>Leopoldauer Straße 12/27<br>1210 Wien<br>E-Mail: <a href="mailto:robert.grasboeck@gmail.com">robert.grasboeck@gmail.com</a><br><br>