mirror of https://github.com/mpv-player/mpv
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:
parent
0cd70b2d62
commit
0c23325b3a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue