Re: [FFmpeg-devel] [PATCH 2/4] avutil/buffer: Add av_fast_malloc equivalent

2018-11-20 Thread Hendrik Leppkes
On Tue, Nov 20, 2018 at 12:45 PM Andreas Rheinhardt wrote: > > A new function, avpriv_buffer_fast_alloc, is added. Its distinguishing > feature is that the content of the buffer is considered expendable > for the given reference, so that no data copying is performed. > > Signed-off-by: Andreas Rhe

[FFmpeg-devel] [PATCH 2/4] avutil/buffer: Add av_fast_malloc equivalent

2018-11-20 Thread Andreas Rheinhardt
A new function, avpriv_buffer_fast_alloc, is added. Its distinguishing feature is that the content of the buffer is considered expendable for the given reference, so that no data copying is performed. Signed-off-by: Andreas Rheinhardt --- libavutil/buffer.c | 37 +