diff options
author | harklu <harklu@wat> | 2011-08-04 21:47:36 +0200 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-08-12 14:19:10 +0300 |
commit | 9e6933440ae59c523fce85b64d6f52f444910003 (patch) | |
tree | 2b54de48e505866e95c946db1b3e497bfcc9867b /libmpcodecs/vf_ass.c | |
parent | e30416c9979232bf86cb58992421e66e03eda492 (diff) | |
download | mpv-9e6933440ae59c523fce85b64d6f52f444910003.tar.bz2 mpv-9e6933440ae59c523fce85b64d6f52f444910003.tar.xz |
options, subs: add --ass-vsfilter-aspect-compat
Add option --ass-vsfilter-aspect-compat and corresponding property
ass_vsfilter_aspect_compat. The setting controls whether to enable the
emulation of traditional VSFilter behavior where subtitles are
stretched if the video is anamorphic (previously always enabled for
native SSA/ASS subtitles). Enabled by default. Add 'V' as a new
default keybinding to toggle the property.
Diffstat (limited to 'libmpcodecs/vf_ass.c')
-rw-r--r-- | libmpcodecs/vf_ass.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libmpcodecs/vf_ass.c b/libmpcodecs/vf_ass.c index 76a08807e7..c34c0b88e3 100644 --- a/libmpcodecs/vf_ass.c +++ b/libmpcodecs/vf_ass.c @@ -358,8 +358,9 @@ static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts) { struct osd_state *osd = vf->priv->osd; ASS_Image *images = 0; - ASS_Renderer *renderer = osd->vsfilter_aspect ? - vf->priv->renderer_vsfilter : vf->priv->renderer_realaspect; + ASS_Renderer *renderer = osd->vsfilter_aspect + && vf->opts->ass_vsfilter_aspect_compat + ? vf->priv->renderer_vsfilter : vf->priv->renderer_realaspect; if (sub_visibility && renderer && osd->ass_track && (pts != MP_NOPTS_VALUE)) { if (osd->ass_force_reload) { |