diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-04-22 20:07:04 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-22 20:07:04 +0200 |
commit | cf09496cf996d21cc718eb0ac0bdf5f0e96d581e (patch) | |
tree | d5d17b4fa2d8a8af2802e09037699b4b3bb89a9b | |
parent | be2b927a6f5311cd5dbf25bd34a029c5d376d9cd (diff) | |
download | ffmpeg-cf09496cf996d21cc718eb0ac0bdf5f0e96d581e.tar.gz |
ffmpeg: assert against creation of cycles in the pools linked list.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-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; } |