[FFmpeg-devel] [PATCH] avfiltergraph: make the AVFilterInOut alloc/free API public

Michael Niedermayer michaelni at gmx.at
Sat Jun 11 19:58:14 CEST 2011


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


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Opposition brings concord. Out of discord comes the fairest harmony.
-- Heraclitus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110611/6e932fa4/attachment.asc>


More information about the ffmpeg-devel mailing list