summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_ilpack.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/filter/vf_ilpack.c')
-rw-r--r--video/filter/vf_ilpack.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/filter/vf_ilpack.c b/video/filter/vf_ilpack.c
index e27b846735..157f02eb7c 100644
--- a/video/filter/vf_ilpack.c
+++ b/video/filter/vf_ilpack.c
@@ -116,6 +116,8 @@ static void ilpack(unsigned char *dst, unsigned char *src[3],
static struct mp_image *filter(struct vf_instance *vf, struct mp_image *mpi)
{
mp_image_t *dmpi = vf_alloc_out_image(vf);
+ if (!dmpi)
+ return NULL;
mp_image_copy_attributes(dmpi, mpi);