Patch by Andy Gocke (agocke gmail com) Originally committed as revision 12581 to svn://svn.ffmpeg.org/ffmpeg/trunk