patch by Oliver Pfister: [oliver pfister gmx ch] Originally committed as revision 9490 to svn://svn.ffmpeg.org/ffmpeg/trunk