Tomato: fix usage of uninitialized variables in applyAspectRatio

Thanks Keir for pointing into issue!
This commit is contained in:
Sergey Sharybin
2012-05-15 14:44:32 +00:00
parent b5ac36671a
commit 3e4e7bfc42

View File

@@ -305,10 +305,12 @@ void applyAspectRatio(TransInfo *t, float vec[2])
float aspx, aspy;
int width, height;
ED_space_clip_size(sc, &width, &height);
if (t->options & CTX_MOVIECLIP)
ED_space_clip_size(sc, &width, &height);
else if (t->options & CTX_MASK)
ED_space_clip_aspect(sc, &aspx, &aspy);
else if (t->options & CTX_MASK)
ED_space_clip_mask_aspect(sc, &aspx, &aspy);
vec[0] *= width / aspx;
vec[1] *= height / aspy;