ffmpeg: assert the refcount of allocated frames,

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/30/merge
Michael Niedermayer 13 years ago
parent cf09496cf9
commit 22a6a23a45
  1. 1
      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;

Loading…
Cancel
Save