fftools/ffmpeg_filter: return an error on ofilter_alloc() failure
This commit is contained in:
parent
5db07311a0
commit
26ebd96371
@ -928,8 +928,10 @@ int fg_create(FilterGraph **pfg, char *graph_desc)
|
|||||||
for (AVFilterInOut *cur = outputs; cur; cur = cur->next) {
|
for (AVFilterInOut *cur = outputs; cur; cur = cur->next) {
|
||||||
OutputFilter *const ofilter = ofilter_alloc(fg);
|
OutputFilter *const ofilter = ofilter_alloc(fg);
|
||||||
|
|
||||||
if (!ofilter)
|
if (!ofilter) {
|
||||||
|
ret = AVERROR(ENOMEM);
|
||||||
goto fail;
|
goto fail;
|
||||||
|
}
|
||||||
|
|
||||||
ofilter->linklabel = cur->name;
|
ofilter->linklabel = cur->name;
|
||||||
cur->name = NULL;
|
cur->name = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user