Patch by Alan Curry !<! pacman !@! TheWorld !.! com !>! Originally committed as revision 6178 to svn://svn.ffmpeg.org/ffmpeg/trunk