Patch by Alex Converse ( alex converse gmail com ) Originally committed as revision 16615 to svn://svn.ffmpeg.org/ffmpeg/trunk