summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-21 11:37:32 +0200
committerwm4 <wm4@nowhere>2014-10-21 11:37:32 +0200
commitbcc3d72995e926f899c0baa215599c50e23b9523 (patch)
tree48738a3437f399cc95b0143da2a316b966bbd3f6 /player
parent38420eb49e9fadefae793240bf5698984ec8d623 (diff)
downloadmpv-bcc3d72995e926f899c0baa215599c50e23b9523.tar.bz2
mpv-bcc3d72995e926f899c0baa215599c50e23b9523.tar.xz
sd_lavc: strictly letter-box PGS subtitles
Getting subtitle scaling and positioning right even if there are video filters, which completely change the image (like cropping), doesn't seem to have a single, correct solution. To some degree, the results are arbitrary, so we may as well do what is most useful to the user. In this case, if the PGS resolution aspect ratio and the video output aspect ratio mismatch, letter-box it, instead of stretching the subs over the video frame. (This will require additional fixes, should it turn out that there are PGS subtitles which are stretched by design.) Fixes #1205.
Diffstat (limited to 'player')
-rw-r--r--player/discnav.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/discnav.c b/player/discnav.c
index ceb38bc3f4..5d477d6313 100644
--- a/player/discnav.c
+++ b/player/discnav.c
@@ -344,7 +344,7 @@ void mp_nav_get_highlight(void *priv, struct mp_osd_res res,
if (out_imgs->num_parts) {
out_imgs->parts = nav->outputs;
out_imgs->format = SUBBITMAP_RGBA;
- osd_rescale_bitmaps(out_imgs, sizes[0], sizes[1], res, -1);
+ osd_rescale_bitmaps(out_imgs, sizes[0], sizes[1], res, 0);
}
pthread_mutex_unlock(&nav->osd_lock);