[MPlayer-cvslog] r35290 - trunk/libvo/vo_sdl.c

reimar subversion at mplayerhq.hu
Tue Oct 30 17:51:25 CET 2012


Author: reimar
Date: Tue Oct 30 17:51:25 2012
New Revision: 35290

Log:
Make aspect handling with -vo sdl and RGB format work again.

SDL can indeed still not handle scaling with RGB formats.

Modified:
   trunk/libvo/vo_sdl.c

Modified: trunk/libvo/vo_sdl.c
==============================================================================
--- trunk/libvo/vo_sdl.c	Tue Oct 30 17:48:00 2012	(r35289)
+++ trunk/libvo/vo_sdl.c	Tue Oct 30 17:51:25 2012	(r35290)
@@ -618,17 +618,16 @@ config(uint32_t width, uint32_t height, 
 		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;
 


More information about the MPlayer-cvslog mailing list