based on patch by Dominik Mierzejewski <dominik@rangers.eu.org> Originally committed as revision 8124 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc