mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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) {
|
||||
OutputFilter *const ofilter = ofilter_alloc(fg);
|
||||
|
||||
if (!ofilter)
|
||||
if (!ofilter) {
|
||||
ret = AVERROR(ENOMEM);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
ofilter->linklabel = cur->name;
|
||||
cur->name = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user