changeset 17227:c2b50fc5d86a

I screwed up keep aspect param, made behavior the opposite of man page. 0-1 were original aspect ratio instead of display...
author ods15
date Tue, 20 Dec 2005 17:38:43 +0000
parents 255b14c0bc36
children 717430668496
files libmpcodecs/vf_dsize.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_dsize.c	Mon Dec 19 19:38:28 2005 +0000
+++ b/libmpcodecs/vf_dsize.c	Tue Dec 20 17:38:43 2005 +0000
@@ -31,7 +31,7 @@
 		if (vf->priv->h == -2) vf->priv->h = vf->priv->w * (double)d_height / d_width;
 		if (vf->priv->h == -3) vf->priv->h = vf->priv->w * (double)height / width;
 		if (vf->priv->method > -1) {
-			double aspect = (vf->priv->method & 2) ? ((double)d_height / d_width) : ((double)height / width);
+			double aspect = (vf->priv->method & 2) ? ((double)height / width) : ((double)d_height / d_width);
 			if ((vf->priv->h > vf->priv->w * aspect) ^ (vf->priv->method & 1)) {
 				vf->priv->h = vf->priv->w * aspect;
 			} else {