[FFmpeg-cvslog] lclenc: Mark codec as init-thread-safe and init-cleanup

Vittorio Giovara git at videolan.org
Fri Apr 24 22:47:22 CEST 2015


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Tue Apr  7 01:47:18 2015 +0200| [74a1cad7e3ba79e5b1e5b2e2bcf6179520442679] | committer: Vittorio Giovara

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=74a1cad7e3ba79e5b1e5b2e2bcf6179520442679
---

 libavcodec/lclenc.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/lclenc.c b/libavcodec/lclenc.c
index acf5e73..20841bc 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,
 };



More information about the ffmpeg-cvslog mailing list