diff options
author | wm4 <wm4@nowhere> | 2017-01-23 15:55:09 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-01-23 15:55:09 +0100 |
commit | 00eadcec8d59c3868bade4b3013b05127e75d5a2 (patch) | |
tree | e8985aa67252864def53aacbd4b23e2e170d5f98 /sub/sd_lavc.c | |
parent | 3e89e061c25e32195677a2c7a239b512cdd3cca9 (diff) | |
download | mpv-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/sd_lavc.c')
-rw-r--r-- | sub/sd_lavc.c | 2 |
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; } |