mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
huffyuvenc: Mark codec as init-thread-safe and init-cleanup
This commit is contained in:
parent
d90133b77b
commit
43171886e0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user