diff options
author | rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-24 01:04:50 +0000 |
---|---|---|
committer | rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-24 01:04:50 +0000 |
commit | c8091743e16de84e3c59890aed97bcdb62189270 (patch) | |
tree | 44ca23a89bf43b3a1f3758686d3e29aedd1f762a /mencoder.c | |
parent | 531d63b5b9af75a185dd39d02040d0eb017efef2 (diff) | |
download | mpv-c8091743e16de84e3c59890aed97bcdb62189270.tar.bz2 mpv-c8091743e16de84e3c59890aed97bcdb62189270.tar.xz |
ability to disable the nonsense expand filter is a must! otherwise
it's impossible to render subtitles earlier in the filter chain and
then scale them down with a scale filter; huge subs will get rendered
again on top!! (think dvd/vobsub where you can't just use smaller font
size) if anyone has a better way to handle this, do it! (e.g. make it
so that the first expand filter disabled osd for the rest of the
filter chain)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9077 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mencoder.c')
-rw-r--r-- | mencoder.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mencoder.c b/mencoder.c index 191aa0724c..fcf25fbb10 100644 --- a/mencoder.c +++ b/mencoder.c @@ -172,6 +172,8 @@ static subtitle* subtitles=NULL; float sub_last_pts = -303; #endif +int auto_expand=1; + // infos are empty by default char *info_name=NULL; char *info_artist=NULL; @@ -675,7 +677,7 @@ default: mencoder_exit(1,NULL); } // append 'expand' filter, it fixes stride problems and renders osd: - sh_video->vfilter=vf_open_filter(sh_video->vfilter,"expand","-1:-1:-1:-1:1"); + if (auto_expand) sh_video->vfilter=vf_open_filter(sh_video->vfilter,"expand","-1:-1:-1:-1:1"); sh_video->vfilter=append_filters(sh_video->vfilter); mp_msg(MSGT_CPLAYER,MSGL_INFO,"==========================================================================\n"); |