From c3418201307c6b7a2b3e3be10f33ab4a20a32c3b Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Fri, 24 Apr 2015 16:59:33 +0100 Subject: jpeglsenc: Mark codec as init-thread-safe and init-cleanup Fixes a memory leak on init failure. --- libavcodec/jpeglsenc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/jpeglsenc.c') diff --git a/libavcodec/jpeglsenc.c b/libavcodec/jpeglsenc.c index 2a24a5d375..839b540ee7 100644 --- a/libavcodec/jpeglsenc.c +++ b/libavcodec/jpeglsenc.c @@ -452,4 +452,6 @@ AVCodec ff_jpegls_encoder = { AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY16, AV_PIX_FMT_NONE }, + .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | + FF_CODEC_CAP_INIT_CLEANUP, }; -- cgit v1.2.1