Re: [FFmpeg-devel] [PATCH 3/7] avformat/av1: Avoid allocation for small headers

2019-11-27 Thread James Almer
On 11/27/2019 9:26 AM, James Almer wrote: > On 11/27/2019 9:22 AM, Andreas Rheinhardt wrote: >> By using avio_get_dyn_buf() + ffio_free_dyn_buf() instead of >> avio_close_dyn_buf() + av_free() one can avoid an allocation + copy for >> small headers. Furthermore, it simplifies freeing. >> >> Signed-

Re: [FFmpeg-devel] [PATCH 3/7] avformat/av1: Avoid allocation for small headers

2019-11-27 Thread James Almer
On 11/27/2019 9:22 AM, Andreas Rheinhardt wrote: > By using avio_get_dyn_buf() + ffio_free_dyn_buf() instead of > avio_close_dyn_buf() + av_free() one can avoid an allocation + copy for > small headers. Furthermore, it simplifies freeing. > > Signed-off-by: Andreas Rheinhardt > --- > libavformat

[FFmpeg-devel] [PATCH 3/7] avformat/av1: Avoid allocation for small headers

2019-11-27 Thread Andreas Rheinhardt
By using avio_get_dyn_buf() + ffio_free_dyn_buf() instead of avio_close_dyn_buf() + av_free() one can avoid an allocation + copy for small headers. Furthermore, it simplifies freeing. Signed-off-by: Andreas Rheinhardt --- libavformat/av1.c | 14 +- 1 file changed, 5 insertions(+), 9