patch by: Ronald S. Bultje rsbultje a gmail d com Originally committed as revision 10616 to svn://svn.ffmpeg.org/ffmpeg/trunk