[FFmpeg-cvslog] ffmpeg: assert the refcount of allocated 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:08:00 2012 +0200| [22a6a23a45b425fc510ee0034a0cb0e3c73551bd] | committer: Michael Niedermayer
ffmpeg: assert the refcount of allocated frames,
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=22a6a23a45b425fc510ee0034a0cb0e3c73551bd
---
ffmpeg.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 567edd3..ab1b7e8 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;
More information about the ffmpeg-cvslog
mailing list