Originally committed as revision 8677 to svn://svn.ffmpeg.org/ffmpeg/trunk
patch by Anssi Hannula, anssi.hannula gmail com Originally committed as revision 8656 to svn://svn.ffmpeg.org/ffmpeg/trunk