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
commit43171886e08b6a2f20a1e2f3ecc95a7984b591cd (patch)
tree46d35dfb8a8b4f3555e9aa8ac83f697d8320ffec /libavcodec
parentd90133b77bf69667d10e54de9aae7da223c6876a (diff)
downloadffmpeg-43171886e08b6a2f20a1e2f3ecc95a7984b591cd.tar.gz
huffyuvenc: Mark codec as init-thread-safe and init-cleanup
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/huffyuvenc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/huffyuvenc.c b/libavcodec/huffyuvenc.c
index 47fe2a5f89..6b3ff76505 100644
--- a/libavcodec/huffyuvenc.c
+++ b/libavcodec/huffyuvenc.c
@@ -30,6 +30,7 @@
#include "huffyuv.h"
#include "huffman.h"
#include "huffyuvencdsp.h"
+#include "internal.h"
#include "put_bits.h"
static inline int sub_left_prediction(HYuvContext *s, uint8_t *dst,
@@ -697,6 +698,8 @@ AVCodec ff_huffyuv_encoder = {
AV_PIX_FMT_YUV422P, AV_PIX_FMT_RGB24,
AV_PIX_FMT_RGB32, AV_PIX_FMT_NONE
},
+ .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE |
+ FF_CODEC_CAP_INIT_CLEANUP,
};
#if CONFIG_FFVHUFF_ENCODER
@@ -713,5 +716,7 @@ AVCodec ff_ffvhuff_encoder = {
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_RGB24,
AV_PIX_FMT_RGB32, AV_PIX_FMT_NONE
},
+ .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE |
+ FF_CODEC_CAP_INIT_CLEANUP,
};
#endif