[MPlayer-cvslog] CVS: main/libmpcodecs vf_pp.c, 1.30, 1.31 vf_pp7.c, 1.2, 1.3 vf_spp.c, 1.27, 1.28

Michael Niedermayer CVS syncmail at mplayerhq.hu
Mon Jul 11 20:48:11 CEST 2005


CVS change done by Michael Niedermayer CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv3231

Modified Files:
	vf_pp.c vf_pp7.c vf_spp.c 
Log Message:
ensure that dr buffers are readable


Index: vf_pp.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_pp.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- vf_pp.c	31 Aug 2003 22:18:27 -0000	1.30
+++ vf_pp.c	11 Jul 2005 18:48:09 -0000	1.31
@@ -97,7 +97,7 @@
 	return; // colorspace differ
     // ok, we can do pp in-place (or pp disabled):
     vf->dmpi=vf_get_image(vf->next,mpi->imgfmt,
-        mpi->type, mpi->flags, mpi->w, mpi->h);
+        mpi->type, mpi->flags | MP_IMGFLAG_READABLE, mpi->w, mpi->h);
     mpi->planes[0]=vf->dmpi->planes[0];
     mpi->stride[0]=vf->dmpi->stride[0];
     mpi->width=vf->dmpi->width;

Index: vf_pp7.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_pp7.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- vf_pp7.c	11 Jul 2005 10:21:14 -0000	1.2
+++ vf_pp7.c	11 Jul 2005 18:48:09 -0000	1.3
@@ -356,7 +356,7 @@
     if(mpi->flags&MP_IMGFLAG_PRESERVE) return; // don't change
     // ok, we can do pp in-place (or pp disabled):
     vf->dmpi=vf_get_image(vf->next,mpi->imgfmt,
-        mpi->type, mpi->flags, mpi->w, mpi->h);
+        mpi->type, mpi->flags | MP_IMGFLAG_READABLE, mpi->w, mpi->h);
     mpi->planes[0]=vf->dmpi->planes[0];
     mpi->stride[0]=vf->dmpi->stride[0];
     mpi->width=vf->dmpi->width;

Index: vf_spp.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_spp.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- vf_spp.c	16 Feb 2005 23:46:59 -0000	1.27
+++ vf_spp.c	11 Jul 2005 18:48:09 -0000	1.28
@@ -453,7 +453,7 @@
     if(mpi->flags&MP_IMGFLAG_PRESERVE) return; // don't change
     // ok, we can do pp in-place (or pp disabled):
     vf->dmpi=vf_get_image(vf->next,mpi->imgfmt,
-        mpi->type, mpi->flags, mpi->w, mpi->h);
+        mpi->type, mpi->flags | MP_IMGFLAG_READABLE, mpi->w, mpi->h);
     mpi->planes[0]=vf->dmpi->planes[0];
     mpi->stride[0]=vf->dmpi->stride[0];
     mpi->width=vf->dmpi->width;




More information about the MPlayer-cvslog mailing list