summaryrefslogtreecommitdiffstats
path: root/sub
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-01-23 15:55:09 +0100
committerwm4 <wm4@nowhere>2017-01-23 15:55:09 +0100
commit00eadcec8d59c3868bade4b3013b05127e75d5a2 (patch)
treee8985aa67252864def53aacbd4b23e2e170d5f98 /sub
parent3e89e061c25e32195677a2c7a239b512cdd3cca9 (diff)
downloadmpv-00eadcec8d59c3868bade4b3013b05127e75d5a2.tar.bz2
mpv-00eadcec8d59c3868bade4b3013b05127e75d5a2.tar.xz
sub: add option to force using video resolution for image subtitles
Basically for debugging and dealing with broken files.
Diffstat (limited to 'sub')
-rw-r--r--sub/sd_lavc.c2
1 files changed, 1 insertions, 1 deletions
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;
}