summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-04-22 20:08:00 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-04-22 20:08:56 +0200
commit22a6a23a45b425fc510ee0034a0cb0e3c73551bd (patch)
tree0c0230fa36eac44bd259639665d214f9ba878301 /ffmpeg.c
parentcf09496cf996d21cc718eb0ac0bdf5f0e96d581e (diff)
ffmpeg: assert the refcount of allocated frames,
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 567edd3eb7..ab1b7e838b 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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;