summaryrefslogtreecommitdiffstats
path: root/spudec.c
diff options
context:
space:
mode:
authorkmkaplan <kmkaplan@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-17 19:11:22 +0000
committerkmkaplan <kmkaplan@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-17 19:11:22 +0000
commitc23212ca9c538b8445ad7da26915daaf52a33c29 (patch)
tree5d82b9f8cb55470d63c9bd439acf4e64ab928735 /spudec.c
parent6b5dd5b561628e84d69d2339787ad815f91488c2 (diff)
downloadmpv-c23212ca9c538b8445ad7da26915daaf52a33c29.tar.bz2
mpv-c23212ca9c538b8445ad7da26915daaf52a33c29.tar.xz
Suppress garbage at the end of some subtitles.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6460 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'spudec.c')
-rw-r--r--spudec.c5
1 files changed, 4 insertions, 1 deletions
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;