From patch by Sergiy (mail = piratfm, gmail) Originally committed as revision 20703 to svn://svn.ffmpeg.org/ffmpeg/trunk
Originally committed as revision 20270 to svn://svn.ffmpeg.org/ffmpeg/trunk
Originally committed as revision 19556 to svn://svn.ffmpeg.org/ffmpeg/trunk