[FFmpeg-cvslog] ffmpeg: assert the refcount of decoded frames
Michael Niedermayer
git at videolan.org
Sun Apr 22 20:26:54 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Apr 22 20:10:00 2012 +0200| [2ea5f866e626448fc272893e57632d6428437f1e] | committer: Michael Niedermayer
ffmpeg: assert the refcount of decoded frames
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2ea5f866e626448fc272893e57632d6428437f1e
---
ffmpeg.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index ab1b7e8..d22378f 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
More information about the ffmpeg-cvslog
mailing list