Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17570 to svn://svn.ffmpeg.org/ffmpeg/trunk