# HG changeset patch # User kmkaplan # Date 1024341082 0 # Node ID f82b8063f3e78f67a1029e9029ca2a3f2cc64011 # Parent 766505ef1c33eabf82857c6c97da00ee3ae2fa87 Suppress garbage at the end of some subtitles. diff -r 766505ef1c33 -r f82b8063f3e7 spudec.c --- 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;