History

avfilter/vf_libvmaf: Check for av_frame_alloc failure

Limin Wang committed 6 years ago

Commit 8aa143e1 parent df912bb1 file · +3 −0Browse files

Unified · Split

libavfilter/vf_libvmaf.c+3−0
@@ -235,6 +235,9 @@ static av_cold int init(AVFilterContext *ctx) · 234 unmodified lines
235235
236236 s->gref = av_frame_alloc();
237237 s->gmain = av_frame_alloc();
238+ if (!s->gref || !s->gmain)
239+ return AVERROR(ENOMEM);
240+
238241 s->error = 0;
239242
240243 s->vmaf_thread_created = 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t