mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-12 10:29:39 +00:00
fftools/ffmpeg_filter: fail on ifilter_alloc() failure
This commit is contained in:
parent
ed0a50923a
commit
5db07311a0
@ -905,8 +905,14 @@ int fg_create(FilterGraph **pfg, char *graph_desc)
|
||||
|
||||
for (AVFilterInOut *cur = inputs; cur; cur = cur->next) {
|
||||
InputFilter *const ifilter = ifilter_alloc(fg);
|
||||
InputFilterPriv *ifp = ifp_from_ifilter(ifilter);
|
||||
InputFilterPriv *ifp;
|
||||
|
||||
if (!ifilter) {
|
||||
ret = AVERROR(ENOMEM);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
ifp = ifp_from_ifilter(ifilter);
|
||||
ifp->linklabel = cur->name;
|
||||
cur->name = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user