diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-04-22 20:08:00 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-22 20:08:56 +0200 |
commit | 22a6a23a45b425fc510ee0034a0cb0e3c73551bd (patch) | |
tree | 0c0230fa36eac44bd259639665d214f9ba878301 /ffmpeg.c | |
parent | cf09496cf996d21cc718eb0ac0bdf5f0e96d581e (diff) | |
download | ffmpeg-22a6a23a45b425fc510ee0034a0cb0e3c73551bd.tar.gz |
ffmpeg: assert the refcount of allocated frames,
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |