Index: libmpcodecs/vf_screenshot.c =================================================================== --- libmpcodecs/vf_screenshot.c (revision 35204) +++ libmpcodecs/vf_screenshot.c (working copy) @@ -168,7 +168,13 @@ return; vf->dmpi= vf_get_image(vf->next, mpi->imgfmt, mpi->type, mpi->flags/* | MP_IMGFLAG_READABLE*/, mpi->width, mpi->height); - + if (vf->dmpi == NULL) { + // what now? + mpi->planes[0] = NULL; + mpi->stride[0] = NULL; + mpi->priv = NULL; + return; + } mpi->planes[0]=vf->dmpi->planes[0]; mpi->stride[0]=vf->dmpi->stride[0]; if(mpi->flags&MP_IMGFLAG_PLANAR){