diff options
Diffstat (limited to 'video/filter/vf_vdpaurb.c')
-rw-r--r-- | video/filter/vf_vdpaurb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/video/filter/vf_vdpaurb.c b/video/filter/vf_vdpaurb.c index 64b68ee5cc..8eaeb86e21 100644 --- a/video/filter/vf_vdpaurb.c +++ b/video/filter/vf_vdpaurb.c @@ -40,6 +40,10 @@ static int filter_ext(struct vf_instance *vf, struct mp_image *mpi) struct mp_vdpau_ctx *ctx = p->ctx; struct vdp_functions *vdp = &ctx->vdp; + if (!mpi) { + return 0; + } + if (mp_vdpau_mixed_frame_get(mpi)) { MP_ERR(vf, "Can't apply vdpaurb filter after vdpaupp filter.\n"); mp_image_unrefp(&mpi); |