patch by Dave Yeo daveryeo _at_ telus _dot_ net Originally committed as revision 14793 to svn://svn.ffmpeg.org/ffmpeg/trunk