diff options
Diffstat (limited to 'sub/sd_lavc.c')
-rw-r--r-- | sub/sd_lavc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sub/sd_lavc.c b/sub/sd_lavc.c index 21dd85f408..81906ceb23 100644 --- a/sub/sd_lavc.c +++ b/sub/sd_lavc.c @@ -472,6 +472,7 @@ static struct sub_bitmaps *get_bitmaps(struct sd *sd, struct mp_osd_res d, // Allow moving up the subtitle, but only until it clips. sub->y = MPMAX(sub->y - offset, 0); + sub->y = MPMIN(sub->y + sub->h, h) - sub->h; } } |