--- ../../main_orig/libmpcodecs/vf_dvbscale.c Fri May 24 18:05:33 2002 +++ vf_dvbscale.c Fri May 24 20:11:44 2002 @@ -20,9 +20,35 @@ int width, int height, int d_width, int d_height, unsigned int flags, unsigned int outfmt){ + int possible_x; int scaled_y=vf->priv->aspect*d_height/d_width; + + if (scaled_y > 576){ + scaled_y=576; //ignore aspect ratio ! + } - d_width=width; // do X-scaling by hardware + + + possible_x=720; //maximum value + + if (width <= 704){ + possible_x=704; + } + if (width <= 688){ + possible_x=688; + } + if (width <= 528){ + possible_x=528; + } + if (width <= 480){ + possible_x=480; + } + if (width <= 352){ + possible_x=352; + } + +// d_width=width; // do X-scaling by hardware + d_width=possible_x; // Scale to next possible value for Fullscreen X d_height=scaled_y; return vf_next_config(vf,width,height,d_width,d_height,flags,outfmt);