mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/frame_thread_encoder: Fix AV_OPT_TYPE_STRING handling in avctx
This is the equivalent to what 7d317d4706
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: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
parent
73bf0f42e3
commit
a149fa97d9
@ -199,6 +199,9 @@ int ff_frame_thread_encoder_init(AVCodecContext *avctx, AVDictionary *options){
|
|||||||
goto fail;
|
goto fail;
|
||||||
tmpv = thread_avctx->priv_data;
|
tmpv = thread_avctx->priv_data;
|
||||||
*thread_avctx = *avctx;
|
*thread_avctx = *avctx;
|
||||||
|
int ret = av_opt_copy(thread_avctx, avctx);
|
||||||
|
if (ret < 0)
|
||||||
|
goto fail;
|
||||||
thread_avctx->priv_data = tmpv;
|
thread_avctx->priv_data = tmpv;
|
||||||
thread_avctx->internal = NULL;
|
thread_avctx->internal = NULL;
|
||||||
if (avctx->codec->priv_class) {
|
if (avctx->codec->priv_class) {
|
||||||
|
Loading…
Reference in New Issue
Block a user