diff options
author | wm4 <wm4@nowhere> | 2015-07-18 14:36:17 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-07-18 14:36:17 +0200 |
commit | 57043d9269527c145f0c3b483cde9e4d4cfc16f9 (patch) | |
tree | 839b3c89ebc598fea4b8a83045c171b2db826eb8 /sub | |
parent | 55943333379b27f3c19a475b83a001a1cd96946c (diff) | |
download | mpv-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')
-rw-r--r-- | sub/sd_lavc.c | 2 |
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); |