summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
Diffstat (limited to 'src/render')
-rw-r--r--src/render/renderer_libplacebo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/render/renderer_libplacebo.c b/src/render/renderer_libplacebo.c
index a3a3109..9fbcfc0 100644
--- a/src/render/renderer_libplacebo.c
+++ b/src/render/renderer_libplacebo.c
@@ -314,7 +314,8 @@ static void renderer_lp_render(struct camu_renderer *renderer, struct camu_scree
// Add in last_pts to account for buffer resets. This is a completely
// broken "hash" of the f64 pts value but hopefully works for now.
// https://www.virtualdub.org/blog2/entry_259.html
- lr->params.info_priv = video->buf + (intptr_t)*((u64 *)&video->buf->last_pts);
+ f64 last_pts = camu_clock_get_last_pts(video->buf->clock);
+ lr->params.info_priv = video->buf + (intptr_t)*((u64 *)&last_pts);
target->crop = mix.frames[0]->crop;
target->crop.x1 *= video->view.zoom / video->view.stretch;
target->crop.y1 *= video->view.zoom * video->view.stretch;