diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-12-24 10:51:24 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-12-24 10:51:24 +0000 |
commit | 6023874828599e37e14056e5fc10325adfdba50c (patch) | |
tree | 86331fba2927b1a4494b10a25f662702b61ecc11 /libmpcodecs/vf_ass.c | |
parent | 1414f844c565a5c0170bb7250eafbd84ffdb93c6 (diff) | |
download | mpv-6023874828599e37e14056e5fc10325adfdba50c.tar.bz2 mpv-6023874828599e37e14056e5fc10325adfdba50c.tar.xz |
Some ugly hacks to make compiling against a newer external version of libass work.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30107 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vf_ass.c')
-rw-r--r-- | libmpcodecs/vf_ass.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libmpcodecs/vf_ass.c b/libmpcodecs/vf_ass.c index 6e524dcd84..3f5d6e352e 100644 --- a/libmpcodecs/vf_ass.c +++ b/libmpcodecs/vf_ass.c @@ -94,7 +94,11 @@ static int config(struct vf_instance_s* vf, if (vf->priv->ass_priv) { ass_configure(vf->priv->ass_priv, vf->priv->outw, vf->priv->outh, 0); +#if defined(LIBASS_VERSION) && LIBASS_VERSION >= 0x00908000 + ass_set_aspect_ratio(vf->priv->ass_priv, ((double)d_width) / d_height, ((double)width) / height); +#else ass_set_aspect_ratio(vf->priv->ass_priv, ((double)d_width) / d_height); +#endif } return vf_next_config(vf, vf->priv->outw, vf->priv->outh, d_width, d_height, flags, outfmt); |