changeset 5008:6f6eebff5bd7

x1!=mpi->width bug fixed... always trust in x1
author arpi
date Sat, 09 Mar 2002 22:07:22 +0000
parents 18690b95b24c
children 515efcc3cd4d
files cinepak.c
diffstat 1 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/cinepak.c	Sat Mar 09 21:53:03 2002 +0000
+++ b/cinepak.c	Sat Mar 09 22:07:22 2002 +0000
@@ -667,9 +667,10 @@
 		y_bottom += y1;
 		top_size -= 12;
 		x = 0;
-		if(x1 != (unsigned int)mpi->width) 
-			mp_msg(MSGT_DECVIDEO, MSGL_WARN, "CVID: Warning x1 (%ld) != width (%d)\n", x1, mpi->width);
-x1 = mpi->width;
+//		if(x1 != (unsigned int)mpi->width) 
+//			mp_msg(MSGT_DECVIDEO, MSGL_WARN, "CVID: Warning x1 (%ld) != width (%d)\n", x1, mpi->width);
+
+//x1 = mpi->width;
 #if DBUG
 	mp_msg(MSGT_DECVIDEO, MSGL_WARN, "   %d) %04lx %04ld <%ld,%ld> <%ld,%ld> yt %ld  %d\n",
 		cur_strip, strip_id, top_size, x0, y0, x1, y1, y_bottom);
@@ -782,7 +783,7 @@
 								}
 
 							x += 4;
-							if(x >= (unsigned int)mpi->width)
+							if(x >= (unsigned int)x1)
 								{
 								x = 0;
 								y += 4;
@@ -832,7 +833,7 @@
 
 							mask >>= 1;
 							x += 4;
-							if(x >= (unsigned int)mpi->width)
+							if(x >= (unsigned int)x1)
 								{
 								x = 0;
 								y += 4;
@@ -849,7 +850,7 @@
 						cvid_v1(mpi, x, y, v1_codebook + get_byte());
 						chunk_size--;
 						x += 4;
-						if(x >= (unsigned int)mpi->width)
+						if(x >= (unsigned int)x1)
 							{
 							x = 0;
 							y += 4;