[FFmpeg-devel] [PATCH] avfiltergraph: make the AVFilterInOut alloc/free API public
Stefano Sabatini
stefano.sabatini-lala at poste.it
Sun Jun 12 11:31:04 CEST 2011
On date Saturday 2011-06-11 19:58:14 +0200, Michael Niedermayer encoded:
> On Sat, Jun 11, 2011 at 04:12:31PM +0200, Stefano Sabatini wrote:
> > Required for letting applications to create and destroy such structs
> > in a convenient way.
> [...]
> > +void avfilter_inout_free(AVFilterInOut **inout)
> > +{
> > + while (*inout) {
> > + AVFilterInOut *next = (*inout)->next;
> > + av_free((*inout)->name);
> > + av_free(*inout);
>
> i think av_freep() is safer
Indifferent to me, I used av_free because the variable are local and
the syntax was simpler with av_free().
Updated.
--
FFmpeg = Frightening Fundamental Magical Plastic Educated Gargoyle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-avfiltergraph-make-the-AVFilterInOut-alloc-free-API-.patch
Type: text/x-diff
Size: 4540 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110612/c802b33b/attachment.bin>
More information about the ffmpeg-devel
mailing list