diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-04-07 01:48:12 +0200 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-04-24 14:55:10 +0100 |
commit | d90133b77bf69667d10e54de9aae7da223c6876a (patch) | |
tree | a293e528234aae1af71691fe50007b18acc4663a /libavcodec/asvenc.c | |
parent | a4edaeb50fc7510f28a5d79349a7926a182c9930 (diff) | |
download | ffmpeg-d90133b77bf69667d10e54de9aae7da223c6876a.tar.gz |
asvenc: Mark codec as init-thread-safe and init-cleanup
Diffstat (limited to 'libavcodec/asvenc.c')
-rw-r--r-- | libavcodec/asvenc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/asvenc.c b/libavcodec/asvenc.c index d865c2e034..f8c52af18b 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 |