[FFmpeg-devel] [PATCH 6/8] avcodec/jpeglsenc: Avoid allocation of JLSState

Paul B Mahol onemda at gmail.com
Sat Sep 5 11:03:47 EEST 2020


On Sat, Sep 05, 2020 at 01:17:14AM +0200, Andreas Rheinhardt wrote:
> This state is currently allocated and freed for every packet; but it can
> just be moved to the stack instead.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
>  libavcodec/jpeglsenc.c | 26 ++++++++++----------------
>  1 file changed, 10 insertions(+), 16 deletions(-)
> 

LGTM


More information about the ffmpeg-devel mailing list