Patch by James Zern, jzern google Originally committed as revision 25551 to svn://svn.ffmpeg.org/ffmpeg/trunk