diff options
author | Philip Langdale <philipl@overt.org> | 2015-08-05 09:40:57 -0700 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-08-05 18:56:41 +0200 |
commit | 0c23325b3a3c7eac592eaba1f05de1f9050f591f (patch) | |
tree | 8a3d10d3e59a4a4584871d90e4b79ef694083106 /video | |
parent | 0cd70b2d629828d55879031d615d1abf65e1c7b1 (diff) | |
download | mpv-0c23325b3a3c7eac592eaba1f05de1f9050f591f.tar.bz2 mpv-0c23325b3a3c7eac592eaba1f05de1f9050f591f.tar.xz |
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.
Diffstat (limited to 'video')
-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); |