1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

ffmpeg: assert the refcount of allocated frames,

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2012-04-22 20:08:00 +02:00
parent cf09496cf9
commit 22a6a23a45

View File

@@ -628,6 +628,7 @@ static int codec_get_buffer(AVCodecContext *s, AVFrame *frame)
if ((ret = alloc_buffer(ist, s, &buf)) < 0) if ((ret = alloc_buffer(ist, s, &buf)) < 0)
return ret; return ret;
} }
av_assert0(!buf->refcount);
buf->refcount++; buf->refcount++;
frame->opaque = buf; frame->opaque = buf;