summaryrefslogtreecommitdiff
path: root/libavcodec/jpeglsenc.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-04-24 16:59:33 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-04-28 16:29:29 +0100
commitc3418201307c6b7a2b3e3be10f33ab4a20a32c3b (patch)
tree29c0240473671bfd7bbc6838d463dd129bae43ae /libavcodec/jpeglsenc.c
parent3919a4572690894d0a7ad4170d699c52b4748194 (diff)
downloadffmpeg-c3418201307c6b7a2b3e3be10f33ab4a20a32c3b.tar.gz
jpeglsenc: Mark codec as init-thread-safe and init-cleanup
Fixes a memory leak on init failure.
Diffstat (limited to 'libavcodec/jpeglsenc.c')
-rw-r--r--libavcodec/jpeglsenc.c2
1 files changed, 2 insertions, 0 deletions
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,
};