Commit 2ea5f866 authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: assert the refcount of decoded frames

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 22a6a23a
......@@ -2614,6 +2614,7 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int
fb->buf->priv = buf;
fb->buf->free = filter_release_buffer;
av_assert0(buf->refcount>0);
buf->refcount++;
av_buffersrc_buffer(ist->filters[i]->filter, fb);
} else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment