Commit 4cc59d42 authored by vitor's avatar vitor

Need to be careful when dealing with references.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11894 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1cb512c4
......@@ -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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment