提交 eac24950 编写于 作者: V Vitor Sessak

Need to be careful when dealing with references.

Commited in SoC by Bobby Bingham

Originally committed as revision 11894 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 30f4baeb
......@@ -134,3 +134,15 @@ void avfilter_formats_unref(AVFilterFormats **ref)
*ref = NULL;
}
void avfilter_formats_changeref(AVFilterFormats **oldref,
AVFilterFormats **newref)
{
int idx;
if((idx = find_ref_index(oldref)) >= 0) {
(*oldref)->refs[idx] = newref;
*newref = *oldref;
*oldref = NULL;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册