diff spudec.c @ 6459:f82b8063f3e7

Suppress garbage at the end of some subtitles.
author kmkaplan
date Mon, 17 Jun 2002 19:11:22 +0000
parents 75e8e1cf1f77
children f33d4ab7a6b2
line wrap: on
line diff
--- a/spudec.c	Mon Jun 17 17:12:22 2002 +0000
+++ b/spudec.c	Mon Jun 17 19:11:22 2002 +0000
@@ -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;