patch by Thorsten Jordan, tjordan macrosystem de Originally committed as revision 10780 to svn://svn.ffmpeg.org/ffmpeg/trunk