Commit 8b686c88 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/options: use av_opt_copy() in avcodec_copy_context() to copy priv_data

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 00759d71
......@@ -186,6 +186,10 @@ int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src)
memcpy(dest, src, sizeof(*dest));
dest->priv_data = orig_priv_data;
if (orig_priv_data)
av_opt_copy(orig_priv_data, src->priv_data);
dest->codec = orig_codec;
/* set values specific to opened codecs back to their default state */
......
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