summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vf_vo.c
diff options
context:
space:
mode:
authorharklu <harklu@wat>2011-08-04 21:47:36 +0200
committerUoti Urpala <uau@mplayer2.org>2011-08-12 14:19:10 +0300
commit9e6933440ae59c523fce85b64d6f52f444910003 (patch)
tree2b54de48e505866e95c946db1b3e497bfcc9867b /libmpcodecs/vf_vo.c
parente30416c9979232bf86cb58992421e66e03eda492 (diff)
downloadmpv-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_vo.c')
-rw-r--r--libmpcodecs/vf_vo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmpcodecs/vf_vo.c b/libmpcodecs/vf_vo.c
index 62ec64ef3f..347c1e96b1 100644
--- a/libmpcodecs/vf_vo.c
+++ b/libmpcodecs/vf_vo.c
@@ -23,6 +23,7 @@
#include "config.h"
#include "mp_msg.h"
+#include "options.h"
#include "mp_image.h"
#include "vf.h"
@@ -155,7 +156,7 @@ static int control(struct vf_instance *vf, int request, void* data)
double pts = video_out->next_pts;
ASS_Renderer *renderer;
double scale;
- if (osd->vsfilter_aspect) {
+ if (osd->vsfilter_aspect && vf->opts->ass_vsfilter_aspect_compat) {
renderer = vf->priv->renderer_vsfilter;
scale = vf->priv->scale_ratio;
} else {