From e62c917abf6d400416fea523ea2d844af3662935 Mon Sep 17 00:00:00 2001 From: Martin Herkt Date: Mon, 6 Jan 2014 17:09:31 +0100 Subject: Fix subtitle delay inversion --- sub/osd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sub/osd.c') diff --git a/sub/osd.c b/sub/osd.c index 107ca232cf..16c1288f5d 100644 --- a/sub/osd.c +++ b/sub/osd.c @@ -162,7 +162,7 @@ static void render_object(struct osd_state *osd, struct osd_object *obj, if (obj->render_bitmap_subs && obj->dec_sub) { double sub_pts = video_pts; if (sub_pts != MP_NOPTS_VALUE) - sub_pts -= obj->video_offset - opts->sub_delay; + sub_pts -= obj->video_offset + opts->sub_delay; sub_get_bitmaps(obj->dec_sub, obj->vo_res, sub_pts, out_imgs); } else { osd_object_get_bitmaps(osd, obj, out_imgs); -- cgit v1.2.3