Skip to content
Snippets Groups Projects
Commit c3418201 authored by Vittorio Giovara's avatar Vittorio Giovara
Browse files

jpeglsenc: Mark codec as init-thread-safe and init-cleanup

Fixes a memory leak on init failure.
parent 3919a457
No related branches found
No related tags found
No related merge requests found
...@@ -452,4 +452,6 @@ AVCodec ff_jpegls_encoder = { ...@@ -452,4 +452,6 @@ AVCodec ff_jpegls_encoder = {
AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY16, AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY16,
AV_PIX_FMT_NONE AV_PIX_FMT_NONE
}, },
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE |
FF_CODEC_CAP_INIT_CLEANUP,
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment