From 0c23325b3a3c7eac592eaba1f05de1f9050f591f Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Wed, 5 Aug 2015 09:40:57 -0700 Subject: vf_vdpaurb: Don't segfault if input mpi is null This will happen when input EOF is reached but output frames remain to be shown. --- video/filter/vf_vdpaurb.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3