diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2001-08-16 22:40:54 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2001-08-16 22:40:54 +0000 |
commit | b457863ccb4dbcfe668e10f29569455516a9225b (patch) | |
tree | 9d69c7427e976507d27652bc4ac4d8b3a69f3977 | |
parent | e2515ab301743cc4aa68b2676e6e5ea73f7e0e84 (diff) | |
download | xine-lib-b457863ccb4dbcfe668e10f29569455516a9225b.tar.gz xine-lib-b457863ccb4dbcfe668e10f29569455516a9225b.tar.bz2 |
Fixed SPU crashing (revert 50% of latest change, sorry).
CVS patchset: 438
CVS date: 2001/08/16 22:40:54
-rw-r--r-- | src/libspudec/spu.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/libspudec/spu.c b/src/libspudec/spu.c index 18532018e..3e0d29c28 100644 --- a/src/libspudec/spu.c +++ b/src/libspudec/spu.c @@ -19,7 +19,7 @@ * along with this program; see the file COPYING. If not, write to * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. * -* $Id: spu.c,v 1.7 2001/08/14 20:35:15 richwareham Exp $ +* $Id: spu.c,v 1.8 2001/08/16 22:40:54 f1rmb Exp $ * *****/ @@ -335,13 +335,14 @@ void spuDrawPicture (spu_state_t *state, spu_seq_t* seq, vo_overlay_t *ovl) len = vlc >> 2; /* if len == 0 -> end sequence - fill to end of line */ - if(len != 0) { - spu_put_pixel (ovl, len, color); - } else { + if (len == 0) len = ovl->width - put_x; - spu_put_pixel (ovl, len, color); + + spu_put_pixel (ovl, len, color); + + if (put_x >= ovl->width) { if (spu_next_line (ovl) < 0) - return; + return; } } |