Commit e0d07455 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/options: leave priv_data in avcodec_copy_context() intact

previously it was freed but the pointer not cleared

Found-by: ruggles
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 82efa24c
......@@ -182,7 +182,6 @@ int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src)
}
av_opt_free(dest);
av_free(dest->priv_data);
memcpy(dest, src, sizeof(*dest));
......
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