mirror of
https://github.com/mpv-player/mpv
synced 2024-12-19 21:31:52 +00:00
Suppress garbage at the end of some subtitles.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6460 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6b5dd5b561
commit
c23212ca9c
5
spudec.c
5
spudec.c
@ -208,8 +208,11 @@ static void spudec_process_data(spudec_handle_t *this)
|
|||||||
|
|
||||||
/* Kludge: draw_alpha needs width multiple of 8. */
|
/* Kludge: draw_alpha needs width multiple of 8. */
|
||||||
if (this->width < this->stride)
|
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);
|
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];
|
i = this->current_nibble[1];
|
||||||
x = 0;
|
x = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user