summaryrefslogtreecommitdiffstats
path: root/sub
diff options
context:
space:
mode:
Diffstat (limited to 'sub')
-rw-r--r--sub/sub.c2
-rw-r--r--sub/sub.h2
2 files changed, 2 insertions, 2 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 {
diff --git a/sub/sub.h b/sub/sub.h
index a13d3ca6f8..4a636f0700 100644
--- a/sub/sub.h
+++ b/sub/sub.h
@@ -120,7 +120,7 @@ struct osd_state {
struct ass_library *ass_library;
struct ass_renderer *ass_renderer;
- double sub_offset;
+ double video_offset;
double vo_pts;
bool render_subs_in_filter;