From 2ea5f866e626448fc272893e57632d6428437f1e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 22 Apr 2012 20:10:00 +0200 Subject: [PATCH] ffmpeg: assert the refcount of decoded frames Signed-off-by: Michael Niedermayer --- ffmpeg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ffmpeg.c b/ffmpeg.c index ab1b7e838b..d22378f354 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -2614,6 +2614,7 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int fb->buf->priv = buf; fb->buf->free = filter_release_buffer; + av_assert0(buf->refcount>0); buf->refcount++; av_buffersrc_buffer(ist->filters[i]->filter, fb); } else