patch by Stefano Sabatini, stefano.sabatini-lala poste it Originally committed as revision 13009 to svn://svn.ffmpeg.org/ffmpeg/trunk
Originally committed as revision 9070 to svn://svn.ffmpeg.org/ffmpeg/trunk
Originally committed as revision 9021 to svn://svn.ffmpeg.org/ffmpeg/trunk