diff libmpcodecs/vf_ass.c @ 30065:d5d20b8256b7

Some ugly hacks to make compiling against a newer external version of libass work.
author reimar
date Thu, 24 Dec 2009 10:51:24 +0000
parents 3a3370c00ba6
children 595410bd114e
line wrap: on
line diff
--- a/libmpcodecs/vf_ass.c	Thu Dec 24 10:45:05 2009 +0000
+++ b/libmpcodecs/vf_ass.c	Thu Dec 24 10:51:24 2009 +0000
@@ -94,7 +94,11 @@
 
 	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);