1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

ffmpeg: stricter refcount check in unref_buffer()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-04-22 20:05:58 +02:00
parent 951cbea56f
commit be2b927a6f

View File

@ -596,7 +596,7 @@ static void free_buffer_pool(InputStream *ist)
static void unref_buffer(InputStream *ist, FrameBuffer *buf) static void unref_buffer(InputStream *ist, FrameBuffer *buf)
{ {
av_assert0(buf->refcount); av_assert0(buf->refcount > 0);
buf->refcount--; buf->refcount--;
if (!buf->refcount) { if (!buf->refcount) {
buf->next = ist->buffer_pool; buf->next = ist->buffer_pool;