[FFmpeg-devel] [PATCH] video stabilization plugins using vid.stab library

Clément Bœsch ubitux at gmail.com
Tue Mar 19 00:53:49 CET 2013


On Tue, Mar 19, 2013 at 12:43:39AM +0100, Georg Martius wrote:
[...]
> > > +
> > > +    if(fd->args) av_free(fd->args);
> > 
> > No need to check for pointer before free.
> > 
> Okay, didn't know. Am I correct that the strings that are allocated in by the 
> options are free'd on av_opt_free()?
> 

Yes. That's one of the reason you generally call this function in the
uninit callback if you need the string outside the init function (in
filter_frame() or wherever).

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130319/609c9ed6/attachment.asc>


More information about the ffmpeg-devel mailing list