Commit cf09496c authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: assert against creation of cycles in the pools linked list.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent be2b927a
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment