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

Fixes a memory leak on init failure.
This commit is contained in:
Vittorio Giovara 2015-04-24 16:59:33 +01:00
parent 3919a45726
commit c341820130

View File

@ -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,
};