Patch by Anatoly Nenashev, anatoly d nenashev a ovsoft d ru Originally committed as revision 25831 to svn://svn.ffmpeg.org/ffmpeg/trunk