Browse Source

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

Fixes a memory leak on init failure.
tags/n2.7
Vittorio Giovara 10 years ago
parent
commit
c341820130
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/jpeglsenc.c

+ 2
- 0
libavcodec/jpeglsenc.c 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,
};

Loading…
Cancel
Save