courtesy of Paul Richards, paul.richards gmail com Originally committed as revision 7698 to svn://svn.ffmpeg.org/ffmpeg/trunk