From c23212ca9c538b8445ad7da26915daaf52a33c29 Mon Sep 17 00:00:00 2001 From: kmkaplan Date: Mon, 17 Jun 2002 19:11:22 +0000 Subject: Suppress garbage at the end of some subtitles. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6460 b3059339-0415-0410-9bf9-f77b7e298cf2 --- spudec.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'spudec.c') diff --git a/spudec.c b/spudec.c index 50784200e3..7c7838d7bd 100644 --- a/spudec.c +++ b/spudec.c @@ -208,8 +208,11 @@ static void spudec_process_data(spudec_handle_t *this) /* 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; -- cgit v1.2.3