Originally committed as revision 3607 to svn://svn.ffmpeg.org/ffmpeg/trunk
courtesy of Konstantin Shishkov Originally committed as revision 3529 to svn://svn.ffmpeg.org/ffmpeg/trunk