forked from FFmpeg/FFmpeg
fftools/ffmpeg_filter: return an error on ofilter_alloc() failure
This commit is contained in:
parent
5db07311a0
commit
26ebd96371
1 changed files with 3 additions and 1 deletions
|
@ -928,8 +928,10 @@ int fg_create(FilterGraph **pfg, char *graph_desc)
|
|||
for (AVFilterInOut *cur = outputs; cur; cur = cur->next) {
|
||||
OutputFilter *const ofilter = ofilter_alloc(fg);
|
||||
|
||||
if (!ofilter)
|
||||
if (!ofilter) {
|
||||
ret = AVERROR(ENOMEM);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
ofilter->linklabel = cur->name;
|
||||
cur->name = NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue