summaryrefslogtreecommitdiffstats
path: root/sub/sub.c
diff options
context:
space:
mode:
Diffstat (limited to 'sub/sub.c')
-rw-r--r--sub/sub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sub/sub.c b/sub/sub.c
index 35d9f29326..90b6cfee00 100644
--- a/sub/sub.c
+++ b/sub/sub.c
@@ -160,7 +160,7 @@ static void render_object(struct osd_state *osd, struct osd_object *obj,
if (osd->render_bitmap_subs && osd->dec_sub) {
double sub_pts = video_pts;
if (sub_pts != MP_NOPTS_VALUE)
- sub_pts -= osd->sub_offset;
+ sub_pts -= osd->video_offset - opts->sub_delay;
sub_get_bitmaps(osd->dec_sub, obj->vo_res, sub_pts, out_imgs);
}
} else {