patch by Nicholas Tung, ntung ntung com Originally committed as revision 8687 to svn://svn.ffmpeg.org/ffmpeg/trunk
Originally committed as revision 8405 to svn://svn.ffmpeg.org/ffmpeg/trunk