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