changeset 9919:4e5af551f8d0

w%8!=0 hack
author arpi
date Tue, 15 Apr 2003 19:02:00 +0000
parents da775a2145de
children cf5ae3f6175c
files libmpcodecs/vd_libmpeg2.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_libmpeg2.c	Mon Apr 14 01:38:36 2003 +0000
+++ b/libmpcodecs/vd_libmpeg2.c	Tue Apr 15 19:02:00 2003 +0000
@@ -137,8 +137,8 @@
 		    (info->current_picture->flags&PIC_FLAG_PROGRESSIVE_FRAME)) ?
 			    MP_IMGFLAG_DRAW_CALLBACK:0)
 		: (MP_IMGFLAG_PRESERVE|MP_IMGFLAG_READABLE),
-		info->sequence->picture_width,
-		info->sequence->picture_height);
+		(info->sequence->picture_width+7)&(~7),
+		(info->sequence->picture_height+7)&(~7) );
 	    if(!mpi) return 0; // VO ERROR!!!!!!!!
 	    mpeg2_set_buf(mpeg2dec, mpi->planes, mpi);