diff libmpcodecs/vd_libmpeg2.c @ 9919:4e5af551f8d0

w%8!=0 hack
author arpi
date Tue, 15 Apr 2003 19:02:00 +0000
parents 82ab6e40c4ea
children 420640a0f6d0
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);