Patch by Henrik Gulbrandsen: henrik gulbra net Originally committed as revision 12916 to svn://svn.ffmpeg.org/ffmpeg/trunk