[FFmpeg-devel] [RFC] missing close/free functions for avformat?
Sun Dec 16 02:44:09 CET 2007
On Sat, Dec 15, 2007 at 08:32:53PM +0100, Reimar D?ffinger wrote:
> On Sat, Dec 15, 2007 at 08:03:23PM +0100, Michael Niedermayer wrote:
> > On Sat, Dec 15, 2007 at 06:21:40PM +0100, matthieu castet wrote:
> > > Michael Niedermayer wrote:
> > > > On Sat, Dec 15, 2007 at 05:28:51PM +0100, Reimar D?ffinger wrote:
> > > >> unless I missed something there are no corresponding close/free
> > > >> functions for av_alloc_format_context and av_open_input_stream.
> > > >> But these are part of the public API, what use are they if there
> > > >> is no proper way in freeing the allocated memory...
> > > >> It actually seems to me that almost everything except the url_fclose
> > > >> should go into a av_free_format_context, do you agree with that?
> > > >
> > > > have you tried:
> > > >
> > > > av_open_input_stream() - av_close_input_file
> > > >
> > > This doesn't seem to work because av_close_input_file call url_fclose.
> > > see .
> > well then make it work, or write a av_close_input_stream() or a universal
> > av_close_avfomatcontext()
> It's untested, but does something like this look good?
if you test it and are sure its correct and theres no way to make
av_close_input_file() work with _stream as well ...
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
More information about the ffmpeg-devel