patch by Stefano Sabatini, stefano.sabatini-lala poste it Originally committed as revision 10456 to svn://svn.ffmpeg.org/ffmpeg/trunk
mem.h. Originally committed as revision 8342 to svn://svn.ffmpeg.org/ffmpeg/trunk