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

Lukasz Marek lukasz.m.luki2 at gmail.com
Wed May 7 23:46:32 CEST 2014


On 06.05.2014 22:04, Nicolas George wrote:
> 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);

Changed. Patch attached.

I also uploaded whole patchset into my repo, so may be merged when found 
fine.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lavu-fifo-add-av_fifo_freep-function.patch
Type: text/x-patch
Size: 2150 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140507/7a0a4de0/attachment.bin>


More information about the ffmpeg-devel mailing list