Patch by Daniel Verkamp, daniel drv nu Originally committed as revision 17954 to svn://svn.ffmpeg.org/ffmpeg/trunk