failed reallocation, rather than just -1. Originally committed as revision 22878 to svn://svn.ffmpeg.org/ffmpeg/trunk