Mercurial > mplayer.hg
diff libmpcodecs/vf_unsharp.c @ 34891:ebf74b8f90f5
Request a sufficiently large image for direct rendering.
Fixes broken video near the borders.
author | ib |
---|---|
date | Wed, 30 May 2012 22:04:51 +0000 |
parents | b510e6c95427 |
children | a6a38b385d24 |
line wrap: on
line diff
--- 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 );