changeset 35196:9269e341748f

Make aspect handling with -vo sdl and RGB format work again. SDL can indeed still not handle scaling with RGB formats.
author reimar
date Tue, 30 Oct 2012 16:51:25 +0000
parents 190117821b47
children 996cf322a88d
files libvo/vo_sdl.c
diffstat 1 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_sdl.c	Tue Oct 30 16:48:00 2012 +0000
+++ b/libvo/vo_sdl.c	Tue Oct 30 16:51:25 2012 +0000
@@ -618,17 +618,16 @@
 		priv->sdlfullflags |= SDL_ANYFORMAT;
 	}
 
-    /* SDL can only scale YUV data */
-    if(priv->mode == RGB || priv->mode == BGR) {
-        d_width = width;
-        d_height = height;
-    }
-
 	/* Save the original Image size */
     priv->width  = width;
     priv->height = height;
     priv->dstwidth  = vo_dwidth;
     priv->dstheight = vo_dheight;
+    /* SDL can only scale YUV data */
+    if(priv->mode == RGB || priv->mode == BGR) {
+        priv->dstwidth = width;
+        priv->dstheight = height;
+    }
 
     priv->format = format;