aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-04-22 20:10:00 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-04-22 20:10:00 +0200
commit2ea5f866e626448fc272893e57632d6428437f1e (patch)
treeb9f32f15ef5ff0fd19d58decf03852d2c0f2c793 /ffmpeg.c
parent22a6a23a45b425fc510ee0034a0cb0e3c73551bd (diff)
downloadffmpeg-2ea5f866e626448fc272893e57632d6428437f1e.tar.gz
ffmpeg: assert the refcount of decoded frames
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c1
1 files changed, 1 insertions, 0 deletions
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