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.
This commit is contained in:
Philip Langdale 2015-08-05 09:40:57 -07:00 committed by wm4
parent 0cd70b2d62
commit 0c23325b3a
1 changed files with 4 additions and 0 deletions

View File

@ -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);