From be2b927a6f5311cd5dbf25bd34a029c5d376d9cd Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 22 Apr 2012 20:05:58 +0200 Subject: [PATCH] ffmpeg: stricter refcount check in unref_buffer() Signed-off-by: Michael Niedermayer --- ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index 0abed0ce2e..dc318d134f 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -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;