diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-04-22 22:07:04 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-22 22:07:04 +0400 |
commit | cf09496cf996d21cc718eb0ac0bdf5f0e96d581e (patch) | |
tree | d5d17b4fa2d8a8af2802e09037699b4b3bb89a9b /ffmpeg.c | |
parent | be2b927a6f5311cd5dbf25bd34a029c5d376d9cd (diff) |
ffmpeg: assert against creation of cycles in the pools linked list.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -599,6 +599,9 @@ static void unref_buffer(InputStream *ist, FrameBuffer *buf) av_assert0(buf->refcount > 0); buf->refcount--; if (!buf->refcount) { + FrameBuffer *tmp; + for(tmp= ist->buffer_pool; tmp; tmp= tmp->next) + av_assert1(tmp != buf); buf->next = ist->buffer_pool; ist->buffer_pool = buf; } |