[MPlayer-cvslog] r35668 - trunk/libmpcodecs/vf_ass.c

upsuper subversion at mplayerhq.hu
Wed Dec 12 18:13:39 CET 2012


Author: upsuper
Date: Wed Dec 12 18:13:39 2012
New Revision: 35668

Log:
Move some code up.

Modified:
   trunk/libmpcodecs/vf_ass.c

Modified: trunk/libmpcodecs/vf_ass.c
==============================================================================
--- trunk/libmpcodecs/vf_ass.c	Tue Dec 11 15:52:33 2012	(r35667)
+++ trunk/libmpcodecs/vf_ass.c	Wed Dec 12 18:13:39 2012	(r35668)
@@ -311,6 +311,10 @@ static int config(struct vf_instance *vf
     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 @@ static int config(struct vf_instance *vf
         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;


More information about the MPlayer-cvslog mailing list