diff options
author | jstebbins <[email protected]> | 2014-05-23 15:58:12 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-05-23 15:58:12 +0000 |
commit | 281c44b0914b21ff6dea0b401a0312d09197a4c3 (patch) | |
tree | a57825e81182aa3677d408a878f2fb52b1f5b548 /libhb | |
parent | 3b6604f8fc2b5d056ce70542e20c40f06b409055 (diff) |
deccc608sub: fix positioning once again
after last change, CCs were getting positioned too far into the middle of
the image.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6204 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/deccc608sub.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libhb/deccc608sub.c b/libhb/deccc608sub.c index 70c78f044..babeee4e4 100644 --- a/libhb/deccc608sub.c +++ b/libhb/deccc608sub.c @@ -866,9 +866,10 @@ static int write_cc_buffer_as_ssa(struct eia608_screen *data, cropped_height = wb->height - wb->crop[0] - wb->crop[1]; cropped_width = wb->width - wb->crop[2] - wb->crop[3]; font_size = cropped_height * .066; - safe_zone = cropped_height * 0.025; - cell_height = (cropped_height - 2 * safe_zone) / 16; - cell_width = (cropped_width - 2 * safe_zone) / 32; + + safe_zone = cropped_height * 0.025; + cell_height = (wb->height - 2 * safe_zone) / 16; + cell_width = (wb->width - 2 * safe_zone) / 32; // Calculate position assuming the position defines // the baseline of the text which is lower left corner |