mirror of https://git.ffmpeg.org/ffmpeg.git
ffmpeg: assert the refcount of allocated frames,
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
cf09496cf9
commit
22a6a23a45
1
ffmpeg.c
1
ffmpeg.c
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue