You've already forked FFmpeg
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:
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;
|
||||||
|
Reference in New Issue
Block a user