patch by Gwenolé Beauchesne, gbeauchesne splitted-desktop com Originally committed as revision 16852 to svn://svn.ffmpeg.org/ffmpeg/trunk