]> git.sesse.net Git - ffmpeg/commit
avcodec/jpeglsenc: Allocate buffers together
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 3 Sep 2020 17:50:03 +0000 (19:50 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 8 Mar 2021 04:04:04 +0000 (05:04 +0100)
commite3c4e1f0c407d2cc5065d0bffcbc584be3bc8c6a
treefd28d117245ae71b8005978c70bf669bf3b13b17
parent017baa8106d8b99ccb5766d8515a145b258a95f8
avcodec/jpeglsenc: Allocate buffers together

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.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/jpeglsenc.c