patch by Steve Lhomme, steve.,.,.lhomme.,@,.free.,.,.fr Originally committed as revision 5230 to svn://svn.ffmpeg.org/ffmpeg/trunk