summaryrefslogtreecommitdiffstats
path: root/sub/sd_lavc.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-07-18 14:36:17 +0200
committerwm4 <wm4@nowhere>2015-07-18 14:36:17 +0200
commit57043d9269527c145f0c3b483cde9e4d4cfc16f9 (patch)
tree839b3c89ebc598fea4b8a83045c171b2db826eb8 /sub/sd_lavc.c
parent55943333379b27f3c19a475b83a001a1cd96946c (diff)
downloadmpv-57043d9269527c145f0c3b483cde9e4d4cfc16f9.tar.bz2
mpv-57043d9269527c145f0c3b483cde9e4d4cfc16f9.tar.xz
sub: add option for stretching image subtitles to screen
Probably makes users happy who want bitmap subtitles to show up in the screen margins, and stops them from doing idiotic crap with vf_expand. Fixes #2098.
Diffstat (limited to 'sub/sd_lavc.c')
-rw-r--r--sub/sd_lavc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sub/sd_lavc.c b/sub/sd_lavc.c
index 80a8409ee6..2deac14a45 100644
--- a/sub/sd_lavc.c
+++ b/sub/sd_lavc.c
@@ -272,6 +272,8 @@ static void get_bitmaps(struct sd *sd, struct mp_osd_res d, double pts,
}
if (priv->avctx->codec_id == AV_CODEC_ID_HDMV_PGS_SUBTITLE)
video_par = -1;
+ if (opts->stretch_image_subs)
+ d.ml = d.mr = d.mt = d.mb = 0;
int insize[2];
get_resolution(sd, insize);
osd_rescale_bitmaps(res, insize[0], insize[1], d, video_par);