patch by Ben Taylor, bentaylor.solx86 gmail com Originally committed as revision 13966 to svn://svn.ffmpeg.org/ffmpeg/trunk