Commit be2b927a authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: stricter refcount check in unref_buffer()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 951cbea5
......@@ -596,7 +596,7 @@ static void free_buffer_pool(InputStream *ist)
static void unref_buffer(InputStream *ist, FrameBuffer *buf)
{
av_assert0(buf->refcount);
av_assert0(buf->refcount > 0);
buf->refcount--;
if (!buf->refcount) {
buf->next = ist->buffer_pool;
......
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