Commit 22a6a23a authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: assert the refcount of allocated frames,

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent cf09496c
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment