patch by Ronald S. Bultje, rbultje ronald.bitfreak net Originally committed as revision 9266 to svn://svn.ffmpeg.org/ffmpeg/trunk