[FFmpeg-cvslog] ffmpeg: stricter refcount check in unref_buffer()
Michael Niedermayer
git at videolan.org
Sun Apr 22 20:26:53 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Apr 22 20:05:58 2012 +0200| [be2b927a6f5311cd5dbf25bd34a029c5d376d9cd] | committer: Michael Niedermayer
ffmpeg: stricter refcount check in unref_buffer()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=be2b927a6f5311cd5dbf25bd34a029c5d376d9cd
---
ffmpeg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 0abed0c..dc318d1 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;
More information about the ffmpeg-cvslog
mailing list