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

Fixes a memory leak on init failure.
pull/135/head
Vittorio Giovara 10 years ago
parent 3919a45726
commit c341820130
  1. 2
      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,
};

Loading…
Cancel
Save