Patch by Erik Hovland erik hovland org Originally committed as revision 14276 to svn://svn.ffmpeg.org/ffmpeg/trunk