original patch by Sebastien Lucas sebastien.lucas _at_ gmail _dot_ com Originally committed as revision 17194 to svn://svn.ffmpeg.org/ffmpeg/trunk