diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-04-22 20:10:00 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-22 20:10:00 +0200 |
commit | 2ea5f866e626448fc272893e57632d6428437f1e (patch) | |
tree | b9f32f15ef5ff0fd19d58decf03852d2c0f2c793 | |
parent | 22a6a23a45b425fc510ee0034a0cb0e3c73551bd (diff) | |
download | ffmpeg-2ea5f866e626448fc272893e57632d6428437f1e.tar.gz |
ffmpeg: assert the refcount of decoded frames
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | ffmpeg.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |