Patch by Anssi Hannula, anssi d hannula a iki d fi Originally committed as revision 25804 to svn://svn.ffmpeg.org/ffmpeg/trunk