Patch by Anton Khirnov mirror(moc liamg saksyw) Originally committed as revision 22539 to svn://svn.ffmpeg.org/ffmpeg/trunk