Patch by Thilo Borgmann, thilo D borgmann A googlemail Originally committed as revision 20517 to svn://svn.ffmpeg.org/ffmpeg/trunk