diff options
Diffstat (limited to 'video/filter')
-rw-r--r-- | video/filter/vf_vavpp.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/video/filter/vf_vavpp.c b/video/filter/vf_vavpp.c index e076713e9e..9dab15e2b9 100644 --- a/video/filter/vf_vavpp.c +++ b/video/filter/vf_vavpp.c @@ -303,14 +303,12 @@ static int filter_ext(struct vf_instance *vf, struct mp_image *in) { struct vf_priv_s *p = vf->priv; - if (in) { - if (in->imgfmt != IMGFMT_VAAPI) { - struct mp_image *tmp = upload(vf, in); - talloc_free(in); - in = tmp; - if (!in) - return -1; - } + if (in && in->imgfmt != IMGFMT_VAAPI) { + struct mp_image *tmp = upload(vf, in); + talloc_free(in); + in = tmp; + if (!in) + return -1; } if (in) { |