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

Paul B Mahol onemda at gmail.com
Sat Sep 5 19:05:14 EEST 2020


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 <andreas.rheinhardt at gmail.com>
> ---
>  libavcodec/jpeglsenc.c | 25 +++++++------------------
>  1 file changed, 7 insertions(+), 18 deletions(-)
> 

Looks ok.


More information about the ffmpeg-devel mailing list