Commit a149fa97 authored by Reimar Döffinger's avatar Reimar Döffinger

avcodec/frame_thread_encoder: Fix AV_OPT_TYPE_STRING handling in avctx

This is the equivalent to what 7d317d47
did for the codec-specific options.
av_opt_copy has specific handling so it's fine that we already copied
the whole context before.
Signed-off-by: 's avatarReimar Döffinger <Reimar.Doeffinger@gmx.de>
parent 73bf0f42
......@@ -199,6 +199,9 @@ int ff_frame_thread_encoder_init(AVCodecContext *avctx, AVDictionary *options){
goto fail;
tmpv = thread_avctx->priv_data;
*thread_avctx = *avctx;
int ret = av_opt_copy(thread_avctx, avctx);
if (ret < 0)
goto fail;
thread_avctx->priv_data = tmpv;
thread_avctx->internal = NULL;
if (avctx->codec->priv_class) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment