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 12543 to svn://svn.ffmpeg.org/ffmpeg/trunk