diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-12 14:57:36 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-15 18:10:31 +0200 |
commit | 30408768335403114d1ed2e80f8032683f85602a (patch) | |
tree | 33368c305ad365f2f25e875511d382c7437c51d7 /libavcodec/encode.c | |
parent | c469c3c3b18fbacd6ee0165573034d2a0408b83f (diff) | |
download | ffmpeg-30408768335403114d1ed2e80f8032683f85602a.tar.gz |
avcodec/avcodec: Move initializing frame-thrd encoder to encode_preinit
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/encode.c')
-rw-r--r-- | libavcodec/encode.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/encode.c b/libavcodec/encode.c index 7919b165da..bd66f138a3 100644 --- a/libavcodec/encode.c +++ b/libavcodec/encode.c @@ -668,6 +668,12 @@ int ff_encode_preinit(AVCodecContext *avctx) return AVERROR(ENOMEM); } + if (CONFIG_FRAME_THREAD_ENCODER) { + ret = ff_frame_thread_encoder_init(avctx); + if (ret < 0) + return ret; + } + return 0; } |