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

2020-09-05 Thread Paul B Mahol
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 > --- > libavcodec/jpeglsenc.c | 26 ++ > 1 file chan

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

2020-09-04 Thread Andreas Rheinhardt
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 --- libavcodec/jpeglsenc.c | 26 ++ 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/libavcodec/jpeglsenc.c b/liba