Paul B Mahol <onemda <at> gmail.com> writes: > + *pads = av_realloc_f(*pads, *count + 1, sizeof(AVFilterPad)); > + *links = av_realloc_f(*links, *count + 1, sizeof(AVFilterLink*)); > + if (!*pads || !*links) > + return AVERROR(ENOMEM); You could avaoid a memleak here. Carl Eugen