patch by Patrick Dehne, patrick mysonicweb com Originally committed as revision 19199 to svn://svn.ffmpeg.org/ffmpeg/trunk