From 57043d9269527c145f0c3b483cde9e4d4cfc16f9 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 18 Jul 2015 14:36:17 +0200 Subject: 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. --- sub/sd_lavc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sub') 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); -- cgit v1.2.3