# HG changeset patch # User arpi # Date 1035395509 0 # Node ID 7b7254cf6553f092f8b3711e325d43b85c4e622b # Parent b571ae470520fc9cdb4f1e2fe75bf42227acc11d automatic rotation for mode 4..7, based on patch by Balatoni Denes diff -r b571ae470520 -r 7b7254cf6553 libmpcodecs/vf_rotate.c --- a/libmpcodecs/vf_rotate.c Wed Oct 23 17:42:12 2002 +0000 +++ b/libmpcodecs/vf_rotate.c Wed Oct 23 17:51:49 2002 +0000 @@ -56,7 +56,13 @@ static int config(struct vf_instance_s* vf, int width, int height, int d_width, int d_height, unsigned int flags, unsigned int outfmt){ - + if (vf->priv->direction & 4) { + if (widthpriv->direction&=3; + } + if (vf->priv->direction & 4){ + vf->put_image=vf_next_put_image; // passthru mode! + return vf_next_config(vf,width,height,d_width,d_height,flags,outfmt); + } return vf_next_config(vf,height,width,d_height,d_width,flags,outfmt); }