summaryrefslogtreecommitdiff
path: root/src/libspudec
diff options
context:
space:
mode:
authorEduard Hasenleithner <ehasenle@users.sourceforge.net>2001-08-14 17:13:33 +0000
committerEduard Hasenleithner <ehasenle@users.sourceforge.net>2001-08-14 17:13:33 +0000
commit406a025a2e1b12eab3ae9aa0124f8707bd8112bc (patch)
tree1e32e3a416858089f918c0f2e89343bb91d8ff9f /src/libspudec
parentdc1ae5d9a88fdf89ab3de73380fefb0e70316305 (diff)
downloadxine-lib-406a025a2e1b12eab3ae9aa0124f8707bd8112bc.tar.gz
xine-lib-406a025a2e1b12eab3ae9aa0124f8707bd8112bc.tar.bz2
Fixed a bug resulting from the misassumption that the pixels
are counted without the right and bottom border. CVS patchset: 429 CVS date: 2001/08/14 17:13:33
Diffstat (limited to 'src/libspudec')
-rw-r--r--src/libspudec/spu.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/libspudec/spu.c b/src/libspudec/spu.c
index 8c572bf54..9573fe040 100644
--- a/src/libspudec/spu.c
+++ b/src/libspudec/spu.c
@@ -19,6 +19,8 @@
* 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.6 2001/08/14 17:13:33 ehasenle Exp $
+*
*****/
/*
@@ -75,10 +77,6 @@
#define LOG(lvl, fmt...)
#endif
-void spuInit (void)
-{
-}
-
/* Return value: reassembly complete = 1 */
int spuReassembly (spu_seq_t *seq, int start, uint8_t *pkt_data, u_int pkt_len)
{
@@ -295,13 +293,13 @@ void spuDrawPicture (spu_state_t *state, spu_seq_t* seq, vo_overlay_t *ovl)
ovl->x = state->o_left;
ovl->y = state->o_top;
- ovl->width = state->o_right - state->o_left;
- ovl->height = state->o_bottom - state->o_top;
+ ovl->width = state->o_right - state->o_left + 1;
+ ovl->height = state->o_bottom - state->o_top + 1;
ovl->clip_top = 0;
- ovl->clip_bottom = ovl->height;
+ ovl->clip_bottom = ovl->height - 1;
ovl->clip_left = 0;
- ovl->clip_right = ovl->width;
+ ovl->clip_right = ovl->width - 1;
spuUpdateMenu(state, ovl);
@@ -331,7 +329,7 @@ void spuDrawPicture (spu_state_t *state, spu_seq_t* seq, vo_overlay_t *ovl)
}
color = vlc & 0x03;
- len = vlc>>2;
+ len = vlc >> 2;
/* if len == 0 -> end sequence - fill to end of line */
if (!len)