Mercurial > mplayer.hg
comparison libmpcodecs/vf_spp.c @ 15965:6ca3e46894b6
ensure that dr buffers are readable
author | michael |
---|---|
date | Mon, 11 Jul 2005 18:48:09 +0000 |
parents | 1fab95e4513c |
children | bdf1b4ecb906 |
comparison
equal
deleted
inserted
replaced
15964:d244178a3105 | 15965:6ca3e46894b6 |
---|---|
451 | 451 |
452 static void get_image(struct vf_instance_s* vf, mp_image_t *mpi){ | 452 static void get_image(struct vf_instance_s* vf, mp_image_t *mpi){ |
453 if(mpi->flags&MP_IMGFLAG_PRESERVE) return; // don't change | 453 if(mpi->flags&MP_IMGFLAG_PRESERVE) return; // don't change |
454 // ok, we can do pp in-place (or pp disabled): | 454 // ok, we can do pp in-place (or pp disabled): |
455 vf->dmpi=vf_get_image(vf->next,mpi->imgfmt, | 455 vf->dmpi=vf_get_image(vf->next,mpi->imgfmt, |
456 mpi->type, mpi->flags, mpi->w, mpi->h); | 456 mpi->type, mpi->flags | MP_IMGFLAG_READABLE, mpi->w, mpi->h); |
457 mpi->planes[0]=vf->dmpi->planes[0]; | 457 mpi->planes[0]=vf->dmpi->planes[0]; |
458 mpi->stride[0]=vf->dmpi->stride[0]; | 458 mpi->stride[0]=vf->dmpi->stride[0]; |
459 mpi->width=vf->dmpi->width; | 459 mpi->width=vf->dmpi->width; |
460 if(mpi->flags&MP_IMGFLAG_PLANAR){ | 460 if(mpi->flags&MP_IMGFLAG_PLANAR){ |
461 mpi->planes[1]=vf->dmpi->planes[1]; | 461 mpi->planes[1]=vf->dmpi->planes[1]; |