summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_vavpp.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/filter/vf_vavpp.c')
-rw-r--r--video/filter/vf_vavpp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/filter/vf_vavpp.c b/video/filter/vf_vavpp.c
index 9a797990eb..4b6322cbe2 100644
--- a/video/filter/vf_vavpp.c
+++ b/video/filter/vf_vavpp.c
@@ -222,6 +222,8 @@ static struct mp_image *upload(struct vf_instance *vf, struct mp_image *in)
static int filter_ext(struct vf_instance *vf, struct mp_image *in)
{
struct vf_priv_s *p = vf->priv;
+ if (!in)
+ return 0;
int rt_format = in->imgfmt == IMGFMT_VAAPI ? va_surface_rt_format(in)
: VA_RT_FORMAT_YUV420;
if (!p->pool || p->current_rt_format != rt_format) {