| Submitter | Michael Niedermayer |
|---|---|
| Date | April 22, 2012, 6:26 p.m. |
| Message ID | <20120422182654.66A52148406@albiero.videolan.org> |
| Download | mbox | patch |
| Permalink | /patch/20728/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/ffmpeg.c b/ffmpeg.c index 567edd3..ab1b7e8 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;