# HG changeset patch # User reimar # Date 1351615885 0 # Node ID 9269e341748f4b1277089885326b998b69f3f97e # Parent 190117821b472792211b2d3a5e08d0155f042f4e Make aspect handling with -vo sdl and RGB format work again. SDL can indeed still not handle scaling with RGB formats. diff -r 190117821b47 -r 9269e341748f libvo/vo_sdl.c --- 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;