[FFmpeg-devel] [PATCH 1/6] lavu/fifo: add av_fifo_freep function

Nicolas George george at nsup.org
Tue May 6 22:04:39 CEST 2014


Le septidi 17 floréal, an CCXXII, Lukasz Marek a écrit :
> +void av_fifo_freep(AVFifoBuffer **f)
> +{
> +    if (f && *f) {
> +        av_free((*f)->buffer);
> +        av_freep(f);
> +    }
> +}

I suggest:

    if (f)
	av_fifo_free(*f);

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140506/9b1fdf4b/attachment.asc>


More information about the ffmpeg-devel mailing list