From f25cbb75de1978706ac48a2eaf51c3e4f54cf451 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Fri, 10 Apr 2015 16:26:53 +0000 Subject: text subtitles: make font height independent of cropping git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7078 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/decutf8sub.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libhb/decutf8sub.c') diff --git a/libhb/decutf8sub.c b/libhb/decutf8sub.c index 82209241b..4461f1ef4 100644 --- a/libhb/decutf8sub.c +++ b/libhb/decutf8sub.c @@ -37,7 +37,8 @@ static int decutf8Init(hb_work_object_t *w, hb_job_t *job) // Generate generic SSA Script Info. int height = job->title->geometry.height - job->crop[0] - job->crop[1]; int width = job->title->geometry.width - job->crop[2] - job->crop[3]; - hb_subtitle_add_ssa_header(w->subtitle, "Arial", .066 * height, + hb_subtitle_add_ssa_header(w->subtitle, "Arial", + .066 * job->title->geometry.height, width, height); return 0; -- cgit v1.2.3