]> git.sesse.net Git - ffmpeg/commit
avcodec/jpeglsenc: Avoid allocation of JLSState
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 3 Sep 2020 17:48:10 +0000 (19:48 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 8 Mar 2021 03:54:57 +0000 (04:54 +0100)
commit017baa8106d8b99ccb5766d8515a145b258a95f8
treea808a8c1abce701c5503dd58ac724f8c47fe8a5b
parent3aee27a9751bcf6c35e89e7a1a01e67e5f6351f7
avcodec/jpeglsenc: Avoid allocation of JLSState

This state is currently allocated and freed for every packet; but it can
just be moved to the stack instead.

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