changeset 35574:715e7aa1ffdb

Move some code up.
author upsuper
date Wed, 12 Dec 2012 17:13:39 +0000
parents af20559e55c9
children db12239148e9
files libmpcodecs/vf_ass.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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;