diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-09-21 02:00:05 +0200 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2023-09-21 02:26:42 +0200 |
commit | 66c92dc059196fbb9c9b3afea321abfa0aace25f (patch) | |
tree | f1003f6d633784434dfd1798fa43bd2e5918e5e9 /video | |
parent | 6b963857c0e8769e4949eb7d83f82d9c0713a7cb (diff) | |
download | mpv-66c92dc059196fbb9c9b3afea321abfa0aace25f.tar.bz2 mpv-66c92dc059196fbb9c9b3afea321abfa0aace25f.tar.xz |
vo_gpu_next: fix unscaled screenshot with --blend-subtitles
Need to use correct adjusted dst.
Diffstat (limited to 'video')
-rw-r--r-- | video/out/vo_gpu_next.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index 422b7c0639..ef4fcd99b5 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -1395,11 +1395,11 @@ static void video_screenshot(struct vo *vo, struct voctrl_screenshot *args) struct frame_priv *fp = mpi->priv; if (opts->blend_subs) { // Only update the overlays if the state has changed - float rx = pl_rect_w(p->dst) / pl_rect_w(image.crop); - float ry = pl_rect_h(p->dst) / pl_rect_h(image.crop); + float rx = pl_rect_w(dst) / pl_rect_w(image.crop); + float ry = pl_rect_h(dst) / pl_rect_h(image.crop); struct mp_osd_res res = { - .w = pl_rect_w(p->dst), - .h = pl_rect_h(p->dst), + .w = pl_rect_w(dst), + .h = pl_rect_h(dst), .ml = -image.crop.x0 * rx, .mr = (image.crop.x1 - vo->params->w) * rx, .mt = -image.crop.y0 * ry, |