Mercurial > mplayer.hg
changeset 24009:e1adad4d5249
bbox[n] and spu->scaled_start_row are unsigned, comparison with 0 is pointless.
author | cehoyos |
---|---|
date | Wed, 08 Aug 2007 08:10:35 +0000 |
parents | f5677f116d4e |
children | 06bb7bca1a10 |
files | spudec.c |
diffstat | 1 files changed, 0 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/spudec.c Wed Aug 08 00:35:40 2007 +0000 +++ b/spudec.c Wed Aug 08 08:10:35 2007 +0000 @@ -659,7 +659,6 @@ case 1: if (sub_pos < 50) { bbox[2] = dys*sub_pos/100 - spu->height * scaley / 0x200; - if (bbox[2] < 0) bbox[2] = 0; bbox[3] = bbox[2] + spu->height; } else { bbox[3] = dys*sub_pos/100 + spu->height * scaley / 0x200; @@ -669,7 +668,6 @@ break; case 2: bbox[2] = dys*sub_pos/100 - spu->height * scaley / 0x100; - if (bbox[2] < 0) bbox[2] = 0; bbox[3] = bbox[2] + spu->height; break; default: /* -1 */ @@ -1077,7 +1075,6 @@ case 1: spu->scaled_start_row = dys*sub_pos/100 - spu->scaled_height/2; if (sub_pos < 50) { - if (spu->scaled_start_row < 0) spu->scaled_start_row = 0; } else { if (spu->scaled_start_row + spu->scaled_height > dys) spu->scaled_start_row = dys - spu->scaled_height; @@ -1085,7 +1082,6 @@ break; case 2: spu->scaled_start_row = dys*sub_pos/100 - spu->scaled_height; - if (spu->scaled_start_row < 0) spu->scaled_start_row = 0; break; } draw_alpha(spu->scaled_start_col, spu->scaled_start_row, spu->scaled_width, spu->scaled_height,