Re: [FFmpeg-devel] [PATCH 7/8] avcodec/jpeglsenc: Allocate buffers together

2020-09-05 Thread Paul B Mahol
On Sat, Sep 05, 2020 at 01:17:15AM +0200, Andreas Rheinhardt wrote: > Having only one allocation that is not automatically freed in particular > means that one does not need to free the already allocated buffers > when allocating another one fails. > > Signed-off-by: Andreas Rheinhardt > --- > l

[FFmpeg-devel] [PATCH 7/8] avcodec/jpeglsenc: Allocate buffers together

2020-09-04 Thread Andreas Rheinhardt
Having only one allocation that is not automatically freed in particular means that one does not need to free the already allocated buffers when allocating another one fails. Signed-off-by: Andreas Rheinhardt --- libavcodec/jpeglsenc.c | 25 +++-- 1 file changed, 7 insertions