Re: [FFmpeg-devel] [PATCH] avutil/buffer: add av_buffer_fast_alloc()

2018-03-14 Thread James Almer
On 3/14/2018 12:09 PM, wm4 wrote: > On Wed, 14 Mar 2018 11:59:59 -0300 > James Almer wrote: > >> On 3/14/2018 11:35 AM, wm4 wrote: >>> On Wed, 14 Mar 2018 11:13:52 -0300 >>> James Almer wrote: >>> On 3/14/2018 4:14 AM, wm4 wrote: > On Tue, 13 Mar 2018 20:48:56 -0300 > James Alm

Re: [FFmpeg-devel] [PATCH] avutil/buffer: add av_buffer_fast_alloc()

2018-03-14 Thread wm4
On Wed, 14 Mar 2018 11:59:59 -0300 James Almer wrote: > On 3/14/2018 11:35 AM, wm4 wrote: > > On Wed, 14 Mar 2018 11:13:52 -0300 > > James Almer wrote: > > > >> On 3/14/2018 4:14 AM, wm4 wrote: > >>> On Tue, 13 Mar 2018 20:48:56 -0300 > >>> James Almer wrote: > >>> > Same concept

Re: [FFmpeg-devel] [PATCH] avutil/buffer: add av_buffer_fast_alloc()

2018-03-14 Thread James Almer
On 3/14/2018 11:35 AM, wm4 wrote: > On Wed, 14 Mar 2018 11:13:52 -0300 > James Almer wrote: > >> On 3/14/2018 4:14 AM, wm4 wrote: >>> On Tue, 13 Mar 2018 20:48:56 -0300 >>> James Almer wrote: >>> Same concept as av_fast_malloc(). If the buffer passed to it is writable and big enough

Re: [FFmpeg-devel] [PATCH] avutil/buffer: add av_buffer_fast_alloc()

2018-03-14 Thread wm4
On Wed, 14 Mar 2018 11:13:52 -0300 James Almer wrote: > On 3/14/2018 4:14 AM, wm4 wrote: > > On Tue, 13 Mar 2018 20:48:56 -0300 > > James Almer wrote: > > > >> Same concept as av_fast_malloc(). If the buffer passed to it is writable > >> and big enough it will be reused, otherwise a new one w

Re: [FFmpeg-devel] [PATCH] avutil/buffer: add av_buffer_fast_alloc()

2018-03-14 Thread James Almer
On 3/14/2018 4:14 AM, wm4 wrote: > On Tue, 13 Mar 2018 20:48:56 -0300 > James Almer wrote: > >> Same concept as av_fast_malloc(). If the buffer passed to it is writable >> and big enough it will be reused, otherwise a new one will be allocated >> instead. >> >> Signed-off-by: James Almer >> ---

Re: [FFmpeg-devel] [PATCH] avutil/buffer: add av_buffer_fast_alloc()

2018-03-14 Thread wm4
On Tue, 13 Mar 2018 20:48:56 -0300 James Almer wrote: > Same concept as av_fast_malloc(). If the buffer passed to it is writable > and big enough it will be reused, otherwise a new one will be allocated > instead. > > Signed-off-by: James Almer > --- > TODO: Changelog and APIChanges entries, ve

[FFmpeg-devel] [PATCH] avutil/buffer: add av_buffer_fast_alloc()

2018-03-13 Thread James Almer
Same concept as av_fast_malloc(). If the buffer passed to it is writable and big enough it will be reused, otherwise a new one will be allocated instead. Signed-off-by: James Almer --- TODO: Changelog and APIChanges entries, version bump. libavutil/buffer.c | 63