vf_rotate: fix params >= 4

This commit is contained in:
wm4 2013-06-28 20:29:42 +02:00
parent 49fb242edb
commit 9e80fe1c15
1 changed files with 2 additions and 0 deletions

View File

@ -73,6 +73,8 @@ static int config(struct vf_instance *vf, int width, int height,
if (width < height)
vf->priv->direction &= 3;
}
if (vf->priv->direction & 4)
return vf_next_config(vf, width, height, d_width, d_height, flags, outfmt);
struct mp_imgfmt_desc desc = mp_imgfmt_get_desc(outfmt);
int a_w = MP_ALIGN_DOWN(width, desc.align_x);
int a_h = MP_ALIGN_DOWN(height, desc.align_y);