[MPlayer-cvslog] CVS: main/libmpcodecs vf_expand.c,1.36,1.37
Guillaume Poirier CVS
syncmail at mplayerhq.hu
Thu Apr 27 21:42:39 CEST 2006
CVS change done by Guillaume Poirier CVS
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv25847/libmpcodecs
Modified Files:
vf_expand.c
Log Message:
fixes a bug when copying the image into a destination buffer smaller than the source.
This occurs when the destination buffer is packed but the source buffer uses aligned h&w.
patch by John Koleszar < jkoleszar AH on2 POIS com >
original thread:
Date: Apr 11, 2006 4:27 PM
Subject: [MPlayer-dev-eng] [PATCH] Chroma plane copy in vf_expand
Index: vf_expand.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_expand.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- vf_expand.c 31 Mar 2006 00:15:47 -0000 1.36
+++ vf_expand.c 27 Apr 2006 19:42:36 -0000 1.37
@@ -357,11 +357,11 @@
vf->dmpi->stride[0],mpi->stride[0]);
memcpy_pic(vf->dmpi->planes[1]+
(vf->priv->exp_y>>mpi->chroma_y_shift)*vf->dmpi->stride[1]+(vf->priv->exp_x>>mpi->chroma_x_shift),
- mpi->planes[1], mpi->chroma_width, mpi->chroma_height,
+ mpi->planes[1], (mpi->w>>mpi->chroma_x_shift), (mpi->h>>mpi->chroma_y_shift),
vf->dmpi->stride[1],mpi->stride[1]);
memcpy_pic(vf->dmpi->planes[2]+
(vf->priv->exp_y>>mpi->chroma_y_shift)*vf->dmpi->stride[2]+(vf->priv->exp_x>>mpi->chroma_x_shift),
- mpi->planes[2], mpi->chroma_width, mpi->chroma_height,
+ mpi->planes[2], (mpi->w>>mpi->chroma_x_shift), (mpi->h>>mpi->chroma_y_shift),
vf->dmpi->stride[2],mpi->stride[2]);
} else {
memcpy_pic(vf->dmpi->planes[0]+
More information about the MPlayer-cvslog
mailing list