[Mplayer-cvslog] CVS: main spudec.c,1.32,1.33

Kim Minh Kaplan CVS kmkaplan at mplayerhq.hu
Mon Jun 17 21:11:36 CEST 2002


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv28048

Modified Files:
	spudec.c 
Log Message:
Suppress garbage at the end of some subtitles.


Index: spudec.c
===================================================================
RCS file: /cvsroot/mplayer/main/spudec.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- spudec.c	29 May 2002 19:27:06 -0000	1.32
+++ spudec.c	17 Jun 2002 19:11:22 -0000	1.33
@@ -208,8 +208,11 @@
 
   /* Kludge: draw_alpha needs width multiple of 8. */
   if (this->width < this->stride)
-    for (y = 0; y < this->height; ++y)
+    for (y = 0; y < this->height; ++y) {
       memset(this->aimage + y * this->stride + this->width, 0, this->stride - this->width);
+      /* FIXME: Why is this one needed? */
+      memset(this->image + y * this->stride + this->width, 0, this->stride - this->width);
+    }
 
   i = this->current_nibble[1];
   x = 0;




More information about the MPlayer-cvslog mailing list