mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 14:01:27 +00:00
avcodec/utils: Assert that dst->progress is clear before ff_thread_ref_frame()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
de6df46120
commit
2048126ea7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user