Revision eac24950

View differences:

libavfilter/formats.c
134 134
    *ref = NULL;
135 135
}
136 136

  
137
void avfilter_formats_changeref(AVFilterFormats **oldref,
138
                                AVFilterFormats **newref)
139
{
140
    int idx;
141

  
142
    if((idx = find_ref_index(oldref)) >= 0) {
143
        (*oldref)->refs[idx] = newref;
144
        *newref = *oldref;
145
        *oldref = NULL;
146
    }
147
}
148

  

Also available in: Unified diff