patch by Carl Eugen Hoyos, cehoyos ag.or at Originally committed as revision 7963 to svn://svn.ffmpeg.org/ffmpeg/trunk