Based on a Chromium patch Originally committed as revision 23166 to svn://svn.ffmpeg.org/ffmpeg/trunk