Skip to content

Commit

Permalink
avcodec/frame_thread_encoder: Fix AV_OPT_TYPE_STRING handling in avctx
Browse files Browse the repository at this point in the history
This is the equivalent to what 7d317d4
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 <[email protected]>
  • Loading branch information
rdoeffinger committed Sep 16, 2017
1 parent 73bf0f4 commit a149fa9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libavcodec/frame_thread_encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a149fa9

Please sign in to comment.