summaryrefslogtreecommitdiffstats
path: root/libhb/rendersub.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2015-04-10 16:12:40 +0000
committerjstebbins <[email protected]>2015-04-10 16:12:40 +0000
commit6ec1cc1e62c7df3d5cecac65d6f7446a438eefd6 (patch)
tree25fbce5c03919b946819f3b03c405b4fd5dc90bf /libhb/rendersub.c
parent864ce5a4227d81f688f32e808245b2600f431ac3 (diff)
decccsub608: make font size independent on the amount of cropping
And use alignment tag \an1 instead of \a1 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7077 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/rendersub.c')
-rw-r--r--libhb/rendersub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/rendersub.c b/libhb/rendersub.c
index 1ea4c7648..6c1a6339b 100644
--- a/libhb/rendersub.c
+++ b/libhb/rendersub.c
@@ -596,10 +596,10 @@ static int cc608sub_post_init( hb_filter_object_t * filter, hb_job_t * job )
// to have the header rewritten with the correct dimensions.
int height = job->title->geometry.height - job->crop[0] - job->crop[1];
int width = job->title->geometry.width - job->crop[2] - job->crop[3];
- int safe_height = 0.8 * height;
+ int safe_height = 0.8 * job->title->geometry.height;
// Use fixed widht font for CC
hb_subtitle_add_ssa_header(filter->subtitle, "Courier New",
- .08 * safe_height, width, height);
+ .066 * safe_height, width, height);
return ssa_post_init(filter, job);
}