patch by Michel Bardiaux, mbardiaux mediaxim be Originally committed as revision 7721 to svn://svn.ffmpeg.org/ffmpeg/trunk