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