From 22a6a23a45b425fc510ee0034a0cb0e3c73551bd Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 22 Apr 2012 20:08:00 +0200 Subject: [PATCH] ffmpeg: assert the refcount of allocated frames, Signed-off-by: Michael Niedermayer --- ffmpeg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ffmpeg.c b/ffmpeg.c index 567edd3eb7..ab1b7e838b 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -628,6 +628,7 @@ static int codec_get_buffer(AVCodecContext *s, AVFrame *frame) if ((ret = alloc_buffer(ist, s, &buf)) < 0) return ret; } + av_assert0(!buf->refcount); buf->refcount++; frame->opaque = buf;