Patch by Martin Fiedler, martin fiedler gmx net Originally committed as revision 19927 to svn://svn.ffmpeg.org/ffmpeg/trunk