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

Vittorio Giovara git at videolan.org
Fri Apr 24 21:48:40 CEST 2015


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Tue Apr  7 01:48:12 2015 +0200| [d90133b77bf69667d10e54de9aae7da223c6876a] | committer: Vittorio Giovara

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

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

 libavcodec/asvenc.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavcodec/asvenc.c b/libavcodec/asvenc.c
index d865c2e..f8c52af 100644
--- a/libavcodec/asvenc.c
+++ b/libavcodec/asvenc.c
@@ -29,6 +29,7 @@
 #include "asv.h"
 #include "avcodec.h"
 #include "fdctdsp.h"
+#include "internal.h"
 #include "mathops.h"
 #include "mpeg12data.h"
 
@@ -329,6 +330,8 @@ AVCodec ff_asv1_encoder = {
     .close          = asv_encode_close,
     .pix_fmts       = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P,
                                                      AV_PIX_FMT_NONE },
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE |
+                      FF_CODEC_CAP_INIT_CLEANUP,
 };
 #endif
 
@@ -344,5 +347,7 @@ AVCodec ff_asv2_encoder = {
     .close          = asv_encode_close,
     .pix_fmts       = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P,
                                                      AV_PIX_FMT_NONE },
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE |
+                      FF_CODEC_CAP_INIT_CLEANUP,
 };
 #endif



More information about the ffmpeg-cvslog mailing list