Because you never know (unless you have intimate knowledge of internals) whether it is just freeing the resources in use, or it also flushes data and takes certain completing steps which are absolutely necessary. Graceful closing is always a good thing to do, FFmpeg is hardly an exception.<br>
<br>Roman<br><br><div class="gmail_quote">On Thu, Nov 15, 2012 at 8:05 PM, Nicolas George <span dir="ltr"><<a href="mailto:nicolas.george@normalesup.org" target="_blank">nicolas.george@normalesup.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le quintidi 25 brumaire, an CCXXI, Ron Woods a écrit :<br>
> No, but you do need to close or free any ffmpeg objects that you created<br>
> with, e.g., avcodec_close(), avfilter_graph_free(), av_free(), etc.<br>
<br>
Why would he *need* to? Freeing everything that was allocated is a good<br>
practice, and absolutely necessary for a library, but for an application,<br>
doing it just before exit is not a necessity at all.<br>
<br>
> From: <a href="mailto:libav-user-bounces@ffmpeg.org">libav-user-bounces@ffmpeg.org</a> [mailto:<a href="mailto:libav-user-bounces@ffmpeg.org">libav-user-bounces@ffmpeg.org</a>] On Behalf Of Quy Pham Sy<br>
<br>
Please remember that top-posting is not acceptable on this list.<br>
<br>
Regards,<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
  Nicolas George<br>
</font></span><br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.12 (GNU/Linux)<br>
<br>
iEYEARECAAYFAlClLwIACgkQsGPZlzblTJPHCACfSPUzY5HC5tJQt8cZIrnF0xDt<br>
3FgAnjzauFPt8rvCIRAVjfGBWx8gmxLe<br>
=EdmG<br>
-----END PGP SIGNATURE-----<br>
<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>