--- src/video_output/vout_subpictures.c	2007-08-02 08:21:02.265625000 +0200
+++ src/video_output/vout_subpictures.c	2007-08-02 08:22:59.312500000 +0200
@@ -603,7 +603,8 @@
         {
             i_scale_height = i_scale_height * p_fmt->i_height /
                              p_subpic->i_original_picture_height;
-            i_scale_width = i_scale_height * i_scale_height / p_fmt->i_height;
+            i_scale_width = i_scale_width * p_fmt->i_height /
+                             p_subpic->i_original_picture_height;
         }
 
         /* Set default subpicture aspect ratio */
