diff -Naur MPlayer-1.0pre5.orig/input/input.c MPlayer-1.0pre5/input/input.c --- MPlayer-1.0pre5.orig/input/input.c 2004-09-01 17:15:37.000000000 +0200 +++ MPlayer-1.0pre5/input/input.c 2004-09-03 03:12:19.851278928 +0200 @@ -97,6 +97,7 @@ #ifdef HAS_DVBIN_SUPPORT { MP_CMD_DVB_SET_CHANNEL, "dvb_set_channel", 2, { {MP_CMD_ARG_INT,{0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}}}}, #endif + { MP_CMD_SWITCH_RATIO, "switch_ratio", 0, { {MP_CMD_ARG_FLOAT,{0}}, {-1,{0}} } }, { MP_CMD_VO_FULLSCREEN, "vo_fullscreen", 0, { {-1,{0}} } }, { MP_CMD_VO_ONTOP, "vo_ontop", 0, { {-1,{0}} } }, { MP_CMD_SCREENSHOT, "screenshot", 0, { {-1,{0}} } }, diff -Naur MPlayer-1.0pre5.orig/input/input.h MPlayer-1.0pre5/input/input.h --- MPlayer-1.0pre5.orig/input/input.h 2004-09-01 17:15:37.000000000 +0200 +++ MPlayer-1.0pre5/input/input.h 2004-09-03 03:11:29.027005392 +0200 @@ -54,6 +54,8 @@ #define MP_CMD_SUB_FORCED_ONLY 50 #define MP_CMD_VO_ONTOP 51 +#define MP_CMD_SWITCH_RATIO 59 + #define MP_CMD_GUI_EVENTS 5000 #define MP_CMD_GUI_LOADFILE 5001 #define MP_CMD_GUI_LOADSUBTITLE 5002 diff -Naur MPlayer-1.0pre5.orig/mplayer.c MPlayer-1.0pre5/mplayer.c --- MPlayer-1.0pre5.orig/mplayer.c 2004-09-01 17:15:36.000000000 +0200 +++ MPlayer-1.0pre5/mplayer.c 2004-09-03 03:13:08.884824696 +0200 @@ -2547,6 +2547,13 @@ } break; #endif + case MP_CMD_SWITCH_RATIO : { + if (cmd->nargs == 0) + movie_aspect = (float) sh_video->disp_w / sh_video->disp_h; + else + movie_aspect = cmd->args[0].v.f; + mpcodecs_config_vo (sh_video, sh_video->disp_w, sh_video->disp_h, 0); + } break; case MP_CMD_AUDIO_DELAY : { float v = cmd->args[0].v.f; audio_delay += v;