patch by Dave Yeo, daveryeo telus net Originally committed as revision 11096 to svn://svn.ffmpeg.org/ffmpeg/trunk