is conducted as a signed calculation. Patch by Alex Converse (alex converse gmail com) Originally committed as revision 15362 to svn://svn.ffmpeg.org/ffmpeg/trunk