Mercurial > mplayer.hg
comparison libmpcodecs/vf_pp7.c @ 15965:6ca3e46894b6
ensure that dr buffers are readable
author | michael |
---|---|
date | Mon, 11 Jul 2005 18:48:09 +0000 |
parents | 08338441314b |
children | bdf1b4ecb906 |
comparison
equal
deleted
inserted
replaced
15964:d244178a3105 | 15965:6ca3e46894b6 |
---|---|
354 | 354 |
355 static void get_image(struct vf_instance_s* vf, mp_image_t *mpi){ | 355 static void get_image(struct vf_instance_s* vf, mp_image_t *mpi){ |
356 if(mpi->flags&MP_IMGFLAG_PRESERVE) return; // don't change | 356 if(mpi->flags&MP_IMGFLAG_PRESERVE) return; // don't change |
357 // ok, we can do pp in-place (or pp disabled): | 357 // ok, we can do pp in-place (or pp disabled): |
358 vf->dmpi=vf_get_image(vf->next,mpi->imgfmt, | 358 vf->dmpi=vf_get_image(vf->next,mpi->imgfmt, |
359 mpi->type, mpi->flags, mpi->w, mpi->h); | 359 mpi->type, mpi->flags | MP_IMGFLAG_READABLE, mpi->w, mpi->h); |
360 mpi->planes[0]=vf->dmpi->planes[0]; | 360 mpi->planes[0]=vf->dmpi->planes[0]; |
361 mpi->stride[0]=vf->dmpi->stride[0]; | 361 mpi->stride[0]=vf->dmpi->stride[0]; |
362 mpi->width=vf->dmpi->width; | 362 mpi->width=vf->dmpi->width; |
363 if(mpi->flags&MP_IMGFLAG_PLANAR){ | 363 if(mpi->flags&MP_IMGFLAG_PLANAR){ |
364 mpi->planes[1]=vf->dmpi->planes[1]; | 364 mpi->planes[1]=vf->dmpi->planes[1]; |