diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-09 22:25:41 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-18 19:58:56 +0200 |
commit | 6aad1204ccea90113d19a8b829c8b81891f9474e (patch) | |
tree | 8610a6ee598d1ff4cbf8225877a11b4c6713a244 /libavcodec/qsvenc_mpeg2.c | |
parent | c597510434f2950df09d218106279c880bdc146c (diff) | |
download | ffmpeg-6aad1204ccea90113d19a8b829c8b81891f9474e.tar.gz |
avcodec: Add FF_CODEC_CAP_NOT_INIT_THREADSAFE
This is in preparation of switching the default init-thread-safety
to a codec being init-thread-safe.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/qsvenc_mpeg2.c')
-rw-r--r-- | libavcodec/qsvenc_mpeg2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/qsvenc_mpeg2.c b/libavcodec/qsvenc_mpeg2.c index 5cb12a2582..7340ece9a9 100644 --- a/libavcodec/qsvenc_mpeg2.c +++ b/libavcodec/qsvenc_mpeg2.c @@ -108,7 +108,8 @@ const FFCodec ff_mpeg2_qsv_encoder = { AV_PIX_FMT_NONE }, .p.priv_class = &class, .defaults = qsv_enc_defaults, - .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, + .caps_internal = FF_CODEC_CAP_NOT_INIT_THREADSAFE | + FF_CODEC_CAP_INIT_CLEANUP, .p.wrapper_name = "qsv", .hw_configs = ff_qsv_enc_hw_configs, }; |