ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Sun Feb  8 
02:03:39 2015 +0100| [2048126ea7a5df2aec55a0db24f642a05e80dca4] | committer: 
Michael Niedermayer

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

Signed-off-by: Michael Niedermayer <michae...@gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2048126ea7a5df2aec55a0db24f642a05e80dca4
---

 libavcodec/utils.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 06b6a1f..c5e6300 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -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);

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to