changeset 15012:ad8815f740d3

1000l, last commit broke qpel interp entirely
author rfelker
date Sat, 26 Mar 2005 08:01:26 +0000
parents 83077e6742e7
children 0bb95cd581b6
files libmpcodecs/vf_tfields.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_tfields.c	Fri Mar 25 22:47:09 2005 +0000
+++ b/libmpcodecs/vf_tfields.c	Sat Mar 26 08:01:26 2005 +0000
@@ -395,16 +395,16 @@
 				MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE,
 				mpi->width, mpi->height/2);
 			qpel(dmpi->planes[0], mpi->planes[0] + (i^!tff)*mpi->stride[0],
-				mpi->w*bpp, mpi->h/2, dmpi->stride[0], mpi->stride[0]*2, 0);
+				mpi->w*bpp, mpi->h/2, dmpi->stride[0], mpi->stride[0]*2, (i^!tff));
 			if (mpi->flags & MP_IMGFLAG_PLANAR) {
 				qpel(dmpi->planes[1],
 					mpi->planes[1] + (i^!tff)*mpi->stride[1],
 					mpi->chroma_width, mpi->chroma_height/2,
-					dmpi->stride[1], mpi->stride[1]*2, 0);
+					dmpi->stride[1], mpi->stride[1]*2, (i^!tff));
 				qpel(dmpi->planes[2],
 					mpi->planes[2] + (i^!tff)*mpi->stride[2],
 					mpi->chroma_width, mpi->chroma_height/2,
-					dmpi->stride[2], mpi->stride[2]*2, 0);
+					dmpi->stride[2], mpi->stride[2]*2, (i^!tff));
 			}
 			ret |= vf_next_put_image(vf, dmpi);
 			if (!i) vf_next_control(vf, VFCTRL_FLIP_PAGE, NULL);