vf_delogo: fix using with numbered mpi

Fix delogo filter with numbered mpi.

Should fix bug #2087.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35202 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2012-09-17 19:50:29 +00:00 committed by wm4
parent ef15c9c8ee
commit bed026b9e3
1 changed files with 4 additions and 1 deletions

View File

@ -180,6 +180,7 @@ static void get_image(struct vf_instance *vf, mp_image_t *mpi){
if(mpi->flags&MP_IMGFLAG_PRESERVE) return; // don't change
if(mpi->imgfmt!=vf->priv->outfmt) return; // colorspace differ
// ok, we can do pp in-place (or pp disabled):
mpi->priv =
vf->dmpi=vf_get_image(vf->next,mpi->imgfmt,
mpi->type, mpi->flags, mpi->w, mpi->h);
mpi->planes[0]=vf->dmpi->planes[0];
@ -197,7 +198,9 @@ static void get_image(struct vf_instance *vf, mp_image_t *mpi){
static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts){
mp_image_t *dmpi;
if(!(mpi->flags&MP_IMGFLAG_DIRECT)){
if(mpi->flags&MP_IMGFLAG_DIRECT) {
vf->dmpi = mpi->priv;
} else {
// no DR, so get a new image! hope we'll get DR buffer:
vf->dmpi=vf_get_image(vf->next,vf->priv->outfmt,
MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE,