# HG changeset patch # User upsuper # Date 1355332419 0 # Node ID 715e7aa1ffdb9a803e1743ac69a52e77ac5b1220 # Parent af20559e55c98383768ba0782b3c5866a9b2f9ab Move some code up. diff -r af20559e55c9 -r 715e7aa1ffdb libmpcodecs/vf_ass.c --- a/libmpcodecs/vf_ass.c Tue Dec 11 14:52:33 2012 +0000 +++ b/libmpcodecs/vf_ass.c Wed Dec 12 17:13:39 2012 +0000 @@ -311,6 +311,10 @@ int planes, alphas; int i; + vf->priv->outfmt = outfmt; + vf->priv->outh = outh = height + ass_top_margin + ass_bottom_margin; + vf->priv->outw = outw = width; + switch (outfmt) { case IMGFMT_YV12: case IMGFMT_I420: @@ -335,10 +339,6 @@ return 0; } - vf->priv->outfmt = outfmt; - vf->priv->outh = outh = height + ass_top_margin + ass_bottom_margin; - vf->priv->outw = outw = width; - if (!opt_screen_size_x && !opt_screen_size_y) { d_width = d_width * vf->priv->outw / width; d_height = d_height * vf->priv->outh / height;