# HG changeset patch # User ib # Date 1338415491 0 # Node ID ebf74b8f90f5dc100c1499260212d478d3fc4571 # Parent 4df5cb727be4f8762bde458ef00e76f50b2875ec Request a sufficiently large image for direct rendering. Fixes broken video near the borders. diff -r 4df5cb727be4 -r ebf74b8f90f5 libmpcodecs/vf_unsharp.c --- a/libmpcodecs/vf_unsharp.c Wed May 30 21:21:46 2012 +0000 +++ b/libmpcodecs/vf_unsharp.c Wed May 30 22:04:51 2012 +0000 @@ -166,7 +166,7 @@ return; // colorspace differ mpi->priv = - vf->dmpi = vf_get_image( vf->next, mpi->imgfmt, mpi->type, mpi->flags, mpi->w, mpi->h ); + vf->dmpi = vf_get_image( vf->next, mpi->imgfmt, mpi->type, mpi->flags, mpi->width, mpi->height ); mpi->planes[0] = vf->dmpi->planes[0]; mpi->stride[0] = vf->dmpi->stride[0]; mpi->width = vf->dmpi->width; @@ -184,7 +184,7 @@ if( !(mpi->flags & MP_IMGFLAG_DIRECT) ) // no DR, so get a new image! hope we'll get DR buffer: - dmpi = vf->dmpi = vf_get_image( vf->next,vf->priv->outfmt, MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE, mpi->w, mpi->h); + dmpi = vf->dmpi = vf_get_image( vf->next,vf->priv->outfmt, MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE, mpi->width, mpi->height); unsharp( dmpi->planes[0], mpi->planes[0], dmpi->stride[0], mpi->stride[0], mpi->w, mpi->h, &vf->priv->lumaParam ); unsharp( dmpi->planes[1], mpi->planes[1], dmpi->stride[1], mpi->stride[1], mpi->w/2, mpi->h/2, &vf->priv->chromaParam );