aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-04-07 01:47:18 +0200
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-04-24 14:55:11 +0100
commit74a1cad7e3ba79e5b1e5b2e2bcf6179520442679 (patch)
tree40f4c66bb3411fc560d44762337d16ad384369a6 /libavcodec
parentbb428e00ac158244d6691bf135be404e85b66a8b (diff)
downloadffmpeg-74a1cad7e3ba79e5b1e5b2e2bcf6179520442679.tar.gz
lclenc: Mark codec as init-thread-safe and init-cleanup
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/lclenc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/lclenc.c b/libavcodec/lclenc.c
index acf5e73b6b..20841bcf58 100644
--- a/libavcodec/lclenc.c
+++ b/libavcodec/lclenc.c
@@ -42,6 +42,7 @@
#include <stdlib.h>
#include "avcodec.h"
+#include "internal.h"
#include "lcl.h"
#include "libavutil/internal.h"
#include "libavutil/mem.h"
@@ -197,4 +198,6 @@ AVCodec ff_zlib_encoder = {
.encode2 = encode_frame,
.close = encode_end,
.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_BGR24, AV_PIX_FMT_NONE },
+ .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE |
+ FF_CODEC_CAP_INIT_CLEANUP,
};