summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_softpulldown.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/filter/vf_softpulldown.c')
-rw-r--r--video/filter/vf_softpulldown.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/filter/vf_softpulldown.c b/video/filter/vf_softpulldown.c
index eeb2f1c863..afa6bf31f0 100644
--- a/video/filter/vf_softpulldown.c
+++ b/video/filter/vf_softpulldown.c
@@ -54,6 +54,9 @@ static int filter(struct vf_instance *vf, struct mp_image *mpi)
int state = vf->priv->state;
struct vf_priv_s *p = vf->priv;
+ if (!mpi)
+ return 0;
+
if (!p->buffer || p->buffer->w != mpi->w || p->buffer->h != mpi->h ||
p->buffer->imgfmt != mpi->imgfmt)
{