diff --exclude-from dontdiff -ur vanilla/main/cfg-mplayer.h main/cfg-mplayer.h --- vanilla/main/cfg-mplayer.h 2002-10-23 19:59:21.000000000 +0200 +++ main/cfg-mplayer.h 2002-10-25 19:27:32.000000000 +0200 @@ -116,6 +116,7 @@ /* from libvo/aspect.c */ extern float monitor_aspect; +extern int black_bars; #include "libaf/af.h" extern af_cfg_t af_cfg; // Audio filter configuration, defined in libmpcodecs/dec_audio.c @@ -248,6 +249,7 @@ {"geometry", &vo_geometry, CONF_TYPE_STRING, 0, 0, 0, NULL}, // set aspect ratio of monitor - usefull for 16:9 TVout {"monitoraspect", &monitor_aspect, CONF_TYPE_FLOAT, CONF_RANGE, 0.2, 3.0, NULL}, + {"blackbars", &black_bars, CONF_TYPE_FLAG, 0, 0, 1, NULL}, // video mode switching: (x11,xv,dga) {"vm", &vidmode, CONF_TYPE_FLAG, 0, 0, 1, NULL}, {"novm", &vidmode, CONF_TYPE_FLAG, 0, 1, 0, NULL}, diff --exclude-from dontdiff -ur vanilla/main/mplayer.c main/mplayer.c --- vanilla/main/mplayer.c 2002-10-25 11:16:08.000000000 +0200 +++ main/mplayer.c 2002-10-25 19:27:04.000000000 +0200 @@ -224,6 +224,8 @@ char** video_driver_list=NULL; char** audio_driver_list=NULL; +int black_bars; + extern char *vo_subdevice; extern char *ao_subdevice; @@ -1197,6 +1199,19 @@ current_module="init_video_filters"; sh_video->vfilter=(void*)vf_open_filter(NULL,"vo",video_out); +if (black_bars) { + char exargs[100]; + int h; + if (sh_video->aspect > 0.01) { + h = (int)((double)sh_video->disp_w/monitor_aspect/sh_video->aspect)&(~1); + } else { + h = (int)((double)sh_video->disp_w/monitor_aspect)&(~1); + } + if (h > sh_video->disp_h) { + sprintf(exargs, "-1:%d:-1:-1:1", h); + sh_video->vfilter=vf_open_filter(sh_video->vfilter,"expand",exargs); + } + } sh_video->vfilter=(void*)append_filters(sh_video->vfilter); current_module="init_video_codec";