summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Stembridge <jstembridge@users.sourceforge.net>2003-02-20 11:40:13 +0000
committerJames Stembridge <jstembridge@users.sourceforge.net>2003-02-20 11:40:13 +0000
commitb58bd413b6b164df7046902ed02ae27362dbeef1 (patch)
treeaab4c48dccb5be53784d5b5185f0bbb1e0d7c19f
parent7b0f08f378c22532862a44fa934b57838d70482b (diff)
downloadxine-lib-b58bd413b6b164df7046902ed02ae27362dbeef1.tar.gz
xine-lib-b58bd413b6b164df7046902ed02ae27362dbeef1.tar.bz2
Fix copy of yuy2 frame by slices when frame height is not a multiple of 16
CVS patchset: 4215 CVS date: 2003/02/20 11:40:13
-rw-r--r--src/xine-engine/video_out.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xine-engine/video_out.c b/src/xine-engine/video_out.c
index 3ef7d4f7f..b48fd26df 100644
--- a/src/xine-engine/video_out.c
+++ b/src/xine-engine/video_out.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: video_out.c,v 1.142 2003/02/18 18:36:30 mroi Exp $
+ * $Id: video_out.c,v 1.143 2003/02/20 11:40:13 jstembridge Exp $
*
* frame allocation / queuing / scheduling / output functions
*/
@@ -236,7 +236,7 @@ static void vo_frame_driver_copy(vo_frame_t *img)
src[0] = img->base[0];
- while ((height -= 16) >= 0) {
+ while ((height -= 16) > -16) {
img->copy(img, src);
src[0] += 16 * img->pitches[0];
}