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:
parent
951cbea56f
commit
be2b927a6f
2
ffmpeg.c
2
ffmpeg.c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user