[Libav-user] when to call av_register_all()

Roman Ryltsov ryltsov at gmail.com
Thu Nov 15 19:10:14 CET 2012


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.

Roman

On Thu, Nov 15, 2012 at 8:05 PM, Nicolas George <
nicolas.george at normalesup.org> wrote:

> Le quintidi 25 brumaire, an CCXXI, Ron Woods a écrit :
> > No, but you do need to close or free any ffmpeg objects that you created
> > with, e.g., avcodec_close(), avfilter_graph_free(), av_free(), etc.
>
> Why would he *need* to? Freeing everything that was allocated is a good
> practice, and absolutely necessary for a library, but for an application,
> doing it just before exit is not a necessity at all.
>
> > From: libav-user-bounces at ffmpeg.org [mailto:
> libav-user-bounces at ffmpeg.org] On Behalf Of Quy Pham Sy
>
> Please remember that top-posting is not acceptable on this list.
>
> Regards,
>
> --
>   Nicolas George
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
>
> iEYEARECAAYFAlClLwIACgkQsGPZlzblTJPHCACfSPUzY5HC5tJQt8cZIrnF0xDt
> 3FgAnjzauFPt8rvCIRAVjfGBWx8gmxLe
> =EdmG
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20121115/979451e1/attachment.html>


More information about the Libav-user mailing list