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

Michael Niedermayer git at videolan.org
Sun Feb 8 02:29:44 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at 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 <michaelni at 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);



More information about the ffmpeg-cvslog mailing list