ffmpeg: stricter refcount check in unref_buffer()
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 22 Apr 2012 18:05:58 +0000 (20:05 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 22 Apr 2012 18:05:58 +0000 (20:05 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index 0abed0c..dc318d1 100644 (file)
--- 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;