Patch by Diego 'Flameeyes' Pettenò flameeyes ¤ gmail ! com Originally committed as revision 11447 to svn://svn.ffmpeg.org/ffmpeg/trunk