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