Commit 2048126e authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/utils: Assert that dst->progress is clear before ff_thread_ref_frame()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent de6df461
......@@ -3663,6 +3663,8 @@ int ff_thread_ref_frame(ThreadFrame *dst, ThreadFrame *src)
if (ret < 0)
return ret;
av_assert0(!dst->progress);
if (src->progress &&
!(dst->progress = av_buffer_ref(src->progress))) {
ff_thread_release_buffer(dst->owner, dst);
......
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