aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-04-22 20:05:58 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-04-22 20:05:58 +0200
commitbe2b927a6f5311cd5dbf25bd34a029c5d376d9cd (patch)
tree6a1f0e92306652f9317b16d1efa59dccde060d14
parent951cbea56fdc03ef96d07fbd7e5bed755d42ac8a (diff)
downloadffmpeg-be2b927a6f5311cd5dbf25bd34a029c5d376d9cd.tar.gz
ffmpeg: stricter refcount check in unref_buffer()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
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;