From 00eadcec8d59c3868bade4b3013b05127e75d5a2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 23 Jan 2017 15:55:09 +0100 Subject: sub: add option to force using video resolution for image subtitles Basically for debugging and dealing with broken files. --- sub/sd_lavc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sub') diff --git a/sub/sd_lavc.c b/sub/sd_lavc.c index 6b7cd07dcb..b660912bf5 100644 --- a/sub/sd_lavc.c +++ b/sub/sd_lavc.c @@ -439,7 +439,7 @@ static void get_bitmaps(struct sd *sd, struct mp_osd_res d, int format, d.ml = d.mr = d.mt = d.mb = 0; int w = priv->avctx->width; int h = priv->avctx->height; - if (w <= 0 || h <= 0) { + if (w <= 0 || h <= 0 || opts->image_subs_video_res) { w = priv->video_params.w; h = priv->video_params.h; } -- cgit v1.2.3