1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-09 14:14:39 +02:00
FFmpeg/libavcodec
Andreas Rheinhardt 718e03e5f2 avcodec/jpeglsdec: Don't presume the context to contain a JLSState
Before 9b3c46a081a9f01559082bf7a154fc6be1e06c18 every call to
ff_jpegls_decode_picture() allocated and freed a JLSState. This commit
instead put said structure into the context of the JPEG-LS decoder to
avoid said allocation. But said function can also be called from other
MJPEG-based decoders and their contexts doesn't contain said structure,
leading to segfaults. This commit fixes this: The JLSState is now
allocated on the first call to ff_jpegls_decode_picture() and stored in
the context.

Found-by: Michael Niedermayer <michael@niedermayer.cc>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-04-20 21:19:29 +02:00
..
2021-04-19 14:34:10 +02:00
2021-04-19 14:34:10 +02:00
2021-04-19 14:34:10 +02:00
2021-04-19 14:34:10 +02:00
2021-04-19 14:34:10 +02:00
2021-04-19 14:34:10 +02:00
2021-03-22 02:43:04 +01:00
2021-03-05 19:45:00 +02:00
2021-03-09 13:41:22 +01:00
2021-04-06 03:20:59 +02:00
2021-03-22 02:43:04 +01:00
2021-03-01 06:10:44 +01:00
2021-03-01 17:36:42 +01:00
2021-03-01 17:36:42 +01:00
2021-03-22 02:43:04 +01:00
2021-03-22 02:43:04 +01:00
2021-03-09 13:41:22 +01:00
2021-04-02 12:19:07 +02:00
2021-04-17 16:53:17 +02:00
2021-03-08 19:19:19 +01:00
2021-03-09 13:41:22 +01:00
2021-03-22 02:43:04 +01:00
2021-03-01 06:10:44 +01:00
2021-03-22 02:43:04 +01:00
2021-03-08 19:19:19 +01:00
2021-03-09 13:41:22 +01:00
2021-03-22 02:43:04 +01:00
2021-03-01 17:36:16 +01:00
2021-03-09 13:41:22 +01:00
2021-03-09 13:41:22 +01:00
2021-03-22 02:43:04 +01:00
2021-03-22 02:43:04 +01:00
2021-03-09 13:41:22 +01:00
2021-04-03 11:54:12 +02:00
2021-03-22 02:43:04 +01:00
2021-03-29 22:19:39 +02:00
2021-03-22 02:43:04 +01:00
2021-03-22 02:43:04 +01:00
2021-03-05 19:45:00 +02:00
2021-03-05 19:45:00 +02:00
2021-04-12 18:29:11 +02:00
2021-04-12 18:29:11 +02:00
2021-04-12 18:29:11 +02:00
2021-04-01 14:45:54 +02:00
2021-03-09 13:41:22 +01:00